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 -a or --add argument:
pytho tracker.py -a "Add a New Task"To list tasks based on their status, use the -l or --list argument. You can specify it into "todo", "in progress", "done", or "all":
python tracker.py -l "todo"To update the description of a task, use the -p (pick) argument to specify the task ID and the -u (update) argument to provide the new description:
python tracker.py -p 2 -u "Updated Task Description"To mark a task as "in progress" or "done", use the -p (pick) argument to specify the task ID and the -m (mark) argument to provide the new status:
python tracker.py -p 2 -m "in progress"To delete a task, use the -p (pick) argument to specify the task ID and the -d (delete) argument:
python tracker.py -p 2 -d "del"- 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