2 releases
0.1.1 | Aug 9, 2024 |
---|---|
0.1.0 | Aug 9, 2024 |
#11 in #task-list
54 downloads per month
11KB
173 lines
To-Do List CLI
A simple command-line to-do list application written in Rust. This application allows users to manage tasks efficiently through a terminal interface, providing features such as adding, removing, and viewing tasks with persistent storage.
Features
- Add tasks to the list
- Remove tasks by index
- View all tasks
- Persistent storage of tasks using a text file
Installation
To install the To-Do List CLI, you need to have Rust and Cargo installed on your system. If you haven't installed Rust yet, you can do so by following the instructions on the official Rust website.
Once you have Rust and Cargo installed, you can install this project:
cargo add todo_cli_rs
or clone the git repository:
git clone https://github.com/HackerX7889/Todo-CLI-RS
cd Todo-CLI-RS
cargo build --release
lib.rs
:
To-Do List CLI
A simple command-line to-do list application written in Rust. This crate allows users to manage tasks efficiently through a terminal interface.
Features
- Add tasks to the list
- Remove tasks by index
- View all tasks
- Persistent storage of tasks using a text file
Usage
To use this crate, you can create a new instance of the Todo
struct and call its methods:
use todo_cli_rs::Todo;
let mut todo = Todo::new();
todo.add_task("Learn Rust".to_string());
todo.view_tasks();
todo.remove_task(0);
Running the Application
To run the command-line application, use the following command:
cargo run
After starting the application, you can interact with it through the terminal to manage your tasks.
Dependencies
~0–9.5MB
~41K SLoC