This is a simple command-line task tracker tool written in Python. It allows you to manage tasks such as adding, updating, deleting, and tracking their status (todo, in-progress, done). All tasks are stored in a file called tasks.json in your project directory.
- Add new tasks
- List all tasks
- Filter tasks by status (todo, in-progress, done)
- Mark tasks as done or in-progress
- Update task descriptions
- Delete tasks
Run the script from your terminal using:
python task_cli.py <command> [arguments]
Make sure Python 3 is installed and you're in the project folder.
-
Add a new task: Use: python task_cli.py add "task description"
-
Update a task's description: Use: python task_cli.py update <task_id> "new description"
-
Delete a task: Use: python task_cli.py delete <task_id>
-
Mark a task as in-progress: Use: python task_cli.py mark-in-progress <task_id>
-
Mark a task as done: Use: python task_cli.py mark-done <task_id>
-
List all tasks: Use: python task_cli.py list
-
List tasks filtered by status: Use: python task_cli.py list todo python task_cli.py list done python task_cli.py list in-progress
Each task is stored as a dictionary with these properties:
id : Unique task ID (number)
description: Description of the task
status : "todo", "in-progress", or "done"
createdAt : Date and time the task was created
updatedAt : Date and time the task was last modified