The objective of this project is to build a CLI application for managing tasks aka todo in the terminal.
TasksApp [command] [options]
The add command is used to create a task and store it on the sqlite db.
dotnet run add <title> [options]
Example:
dotnet run add "Pick up dry cleaning at 4pm."
--completed
options marks a task as completed upon creation.
dotnet run add "Go to the gym." --completed
To view the tasks that has just been created, use the list command.
dotnet run list
Example:
dotnet run list
We only see one task, this is because by default the list command only
displays tasks that have not been completed.
dotnet run list --all
This command is used to mark a task as completed.
dotnet run complete <task ID>
Example:
dotnet run complete 1
list all tasks using the command dotnet run list --all
.
The delete command as the name suggests is used to delete a task.
dotnet run delete <task ID>
Example:
dotnet run delete 1
The command above the task with the ID 1 from the database.
You can find an example version of this tasks app on the releases tab of this repo.
- Change the IsComplete property of the Task data model to use a timestamp instead, which gives further information.
- Add an update task feature
- Implement the DueTime and DueDate features.