A simple command-line interface (CLI) application written in Rust to manage your to-do tasks. This application allows you to add, list, and mark tasks as completed, with the data stored in a JSON file.
- Add new tasks to your to-do list.
- List all tasks, showing their status (completed or not).
- Mark tasks as completed.
To run this project, you'll need to have the following installed:
-
Clone the repository:
https://github.com/rishipatel9/Cli-todo.git cd rust-todo
-
Build the Project
cargo build
-
Run the project:
cargo run --[Command]
Adding a task
-
Add a task:
cargo run -- add "Learn rust"
Listing todos
-
List todos:
cargo run -- list
Marking todos
-
Marking todo as completed:
cargo run -- completed 1
-
Example
cargo run -- add "Learn go" cargo run -- list cargo run -- completed 1
-
Example of todo.json
[ { "id": 1, "title": "Finish Rust project", "completed": false }, { "id": 2, "title": "Write README", "completed": true } ]