Task Tracker CLI is a feature that allows us to add, update, mark, and also delete task in JSON file with a simple command line application in it. It also let us view a list of task based on their status.
- Add: Add a new task with a description and a default status of "todo",
- List: View tasks based on their status (todo, in progress, done, or all).
- Update: Update the description of an existing task based on their ID.
- Mark: Change the status of a task into "in progress" or "done" based on their ID.
- Delete: Remove an existing task based on their ID.
To add a new task, use the add argument:
python app.py add "Add a New Task"To list tasks based on their status, use the list argument. You can specify it into "todo", "in progress", "done", or "all":
python app.py list "todo"To update the description of a task, use specify the task ID and the update argument to provide the new description:
python app.py update 2 "Updated Task Description"To mark a task as "in progress" or "done" or "todo", use the task ID,by defaul task as set on todo
python app.py in_progress "2"To delete a task, use the task ID and the delete argument:
python app.py delete "2"- quotation mark " " are just used to describe and isn't requied to be used in code.
- Ensure that the
task_tracker.jsonfile exists in the same directory as the script for it to function correctly. - The application will create the
task_tracker.jsonfile if it does not already exist when adding a new task.
For further information about this project, visit the Task Tracker Project Roadmap.# github-task-tracker-cli