A simple command-line interface (CLI) application to manage a to-do list.
- Add new tasks
- List all tasks
- Get a specific task by index
- Remove a task by index
- Mark a task as done or not done
- Edit the name of a task
Before you can use the ToDoList CLI, you need to ensure you have Rust installed on your machine. Follow the instructions on the official Rust website to install Rust.
After installing Rust, you can run the application using Cargo:
bash
cargo run
To add a new task to your to-do list, use the add subcommand:
cargo run -- add "Your task here"
To list all tasks in your to-do list, use the list subcommand:
cargo run -- list
To get a specific task by its index, use the get subcommand:
cargo run -- get <index>
Replace with the numeric index of the task you want to view.
To remove a task from your to-do list by its index, use the remove subcommand:
cargo run -- remove <index>
Replace with the numeric index of the task you want to remove.
To change the status of a task, use the mark_status subcommand:
cargo run -- mark_status <index> <status>
Replace with the task's index and with true to mark as done, or false to mark as not done.
To edit the name of a task, use the edit subcommand:
cargo run -- edit <index> "New task name"
Replace with the task's index and "New task name" with the new name for the task.
-- Gbenga Ajiboye