A simple Command-Line Interface (CLI) To-Do list application written in Rust. This application allows you to manage your tasks directly from the terminal.
- Add a new task
- List all tasks
- Mark a task as complete
- Remove a task
- Edit a task description
-
Install Rust: Make sure you have Rust installed. If not, follow the instructions here.
-
Clone the repository:
git clone https://github.com/vedran77/cli-todo.git cd cli_todo -
Build the project:
cargo build --release
Navigate to the project directory and use the following commands:
Add a new task to the list.
cargo run -- add "Your task description"List all tasks with their completion status.
cargo run -- listMark a task as complete by specifying its index.
cargo run -- complete [index]Example:
cargo run -- complete 0Remove a task from the list by specifying its index.
cargo run -- remove [index]Example:
cargo run -- remove 0Edit an existing task's description by specifying its index and the new description.
cargo run -- edit [index] "New task description"Example:
cargo run -- edit 0 "Learn Rust"