A simple command-line todo application written in Rust.
- Rust and Cargo installed (Install Rust)
- Open a terminal and navigate to the project directory:
cd C:\Users\pinhe\Documents\Informatikk\Rusty-spoon\project - Build and run the program:
Replace
cargo run -- [COMMAND]
[COMMAND]with one of the options below.
- Add a new todo
cargo run -- add "Your todo text here"
- List all todos
cargo run -- list - Mark a todo as done
Replace
cargo run -- done <id>
<id>with the number of the todo to mark as done. - Remove a todo
Replace
cargo run -- remove <id>
<id>with the number of the todo to remove.
cargo run -- add "Buy groceries"
cargo run -- list
cargo run -- done 1
cargo run -- remove 1Todos are saved in todos.json in the project directory.