Skip to content

A simple command-line application built in Golang to manage tasks. This application allows you to add, update, delete, list, and mark the status of tasks.

License

Notifications You must be signed in to change notification settings

abneed/task-tracker-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Tracker CLI

A simple command-line application built in Golang to manage tasks. This application allows you to add, update, delete, list, and mark the status of tasks. Tasks are stored in a JSON file for persistence.

Roadmap Project Challenge: https://roadmap.sh/projects/task-tracker

Features

  • Add Task: Create a new task with a description.
  • Update Task: Modify the description or status of an existing task.
  • Delete Task: Remove a task from the list.
  • Mark Task Status: Mark a task as in progress or done.
  • List Tasks: View all tasks along with their description and status.

Installation

To install and run the Task Tracker CLI, ensure you have Golang installed, then follow these steps:

# Clone the repository
git clone https://github.com/abneed/task-tracker-cli.git

# Navigate to the project directory
cd task-tracker-cli

# Build the application
go build -o task-cli

# Run the application
./task-cli

Usage

Here’s how you can use the various commands:

Add a Task

./task-cli add "Your task description"

Update a Task

./task-cli update <task_id> "Updated task description"

Delete a Task

./task-cli delete <task_id>

Marking a task as "in-progress" or "done"

./task-cli mark-in-progress <task_id>
./task-cli mark-done <task_id>

Listing all tasks

./task-cli list

Task Storage

Tasks are stored in a JSON file located in the project directory. This allows for easy persistence and manipulation of task data.

In case that the JSON file doesn't exists, the application will generate that directory and the JSON file storage automatically db/tasks.json.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for review.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple command-line application built in Golang to manage tasks. This application allows you to add, update, delete, list, and mark the status of tasks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages