A simple command-line To-Do List application written in Rust. This tool allows you to manage tasks directly from your terminal – tasks can be added, edited, deleted, viewed, or cleared. Tasks are stored in a local JSON file.
- View all tasks in a clean list
- Add new tasks
- Edit existing tasks
- Delete individual tasks
- Clear all tasks at once
- Simple menu-driven CLI interface
- Persistent storage in src/data.json
- Make sure Rust is installed. If not, install it via rustup
- Clone the repository:
git clone https://github.com/R-100/Rust-To-Do-List.git
cd rust-todo-cli
- Build the project:
cargo build --release
- Run the program:
cargo run
When you run the application, you will see a menu like this:
========= Menu =========
1 = Show list
2 = Add
3 = Edit
4 = Delete
5 = Clear all
6 = Exit program
- 1: Show all tasks
- 2: Add a new task
- 3: Edit a task by its number
- 4: Delete a task by its number
- 5: Clear all tasks
- 6: Exit the program
Follow the prompts to manage your tasks.
- All tasks are stored in src/data.json.
- Each task is a JSON object:
[
{
"id": 1,
"value": "Sample task"
},
{
"id": 2,
"value": "Another task"
}
]