Task Tracker CLI is a simple command-line application that allows you to add, update, mark, and delete tasks in a JSON file. The application also lets you view a list of tasks based on their status.
Sample solution for the task-tracker challenge from roadmap.sh.
-
Add Task: Add a new task with a description and a default status of "to-do".
-
List Tasks: View a list of tasks based on their status ("to-do", "in progress", "done") or all tasks.
-
Update Task: Update the description and status of an existing task based on its ID.
-
Mark Task Status: Change the status of a task to "in progress" or "done" based on its ID.
-
Delete Task: Remove an existing task based on its ID.
To add a new task, use the add
command:
dotnet run add "Task Description" "status"
To list tasks based on their status, use the list
or list-by-status
command. If no status is specified, it lists all tasks:
dotnet run list
dotnet run list-by-status "to-do"
To update the description and status of an existing task, use the update
command:
dotnet run update <id> "New Task Description" "New Status"
To delete a task, use the delete
command:
dotnet run delete <id>