Skip to content

ctorresmx/todo-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-list

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

How to run it

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

Add a todo

This will add a todo with the description provided.

cargo run -- add --item "buy eggs"

List todos

This command will list all todos, regardless of status.

cargo run -- list

List only completed todos

cargo run -- list --completed

List only pending todos

cargo run -- list --pending

Complete todo

This will mark a todo as complete.

cargo run -- complete --id <id>

Remove todo

This will remove a particular todo from the list.

cargo run -- remove --id <id>

Clean todos

This will clean the list of todos.

cargo run -- clean

About

Small app to practice Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages