A small app to practice and get more familiar with Rust.
For now, each command performs a different action. Therefore you will need to run a different command to add, list, remove, etc.
The list will be saved in the $HOME
directory with the name .todo-list
The app has basic actions like:
- Add a todo
- List todos with filtering for complete and pending items
- Complete a todo
- Remove a todo
- Clean all todos
This will add a todo with the description provided.
cargo run -- add --item "buy eggs"
This command will list all todos, regardless of status.
cargo run -- list
cargo run -- list --completed
cargo run -- list --pending
This will mark a todo as complete.
cargo run -- complete --id <id>
This will remove a particular todo from the list.
cargo run -- remove --id <id>
This will clean the list of todos.
cargo run -- clean