Skip to content

R-100/Rust-To-Do-List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust ToDo List

Rust License

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.


Features

  • 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

Installation

  1. Make sure Rust is installed. If not, install it via rustup
  2. Clone the repository:
git clone https://github.com/R-100/Rust-To-Do-List.git
cd rust-todo-cli
  1. Build the project:
cargo build --release
  1. Run the program:
cargo run

Usage

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.


Data Storage

  • All tasks are stored in src/data.json.
  • Each task is a JSON object:
[
  {
    "id": 1,
    "value": "Sample task"
  },
  {
    "id": 2,
    "value": "Another task"
  }
]

About

A simple, menu-driven command-line tool in Rust for managing tasks. Add, edit, delete individual or all tasks, and keep track of your to-do list – all stored locally in a JSON file.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages