#todo #cli #example

app rustappCLI

A simple command-line to-do list application written in Rust

1 unstable release

0.1.0 Dec 31, 2024

#675 in Command line utilities

MIT license

7KB
125 lines

To-Do CLI

A simple command-line to-do list application written in Rust.

Features

  • Add a new task
  • List all tasks
  • Mark a task as done
  • Remove a task
  • Search for tasks by description

Installation

  1. Ensure you have Rust installed.
  2. Clone the repository:
    git clone https://github.com/yourusername/rustApp.git
    
  3. Navigate to the project directory:
    cd rustApp
    
  4. Build the project:
    cargo build
    

Usage

Run the application using cargo run followed by the desired command and options.

Commands

  • Add a new task

    cargo run -- add -d "Task description"
    
  • List all tasks

    cargo run -- list
    
  • Mark a task as done

    cargo run -- done -i 1
    
  • Remove a task

    cargo run -- remove -i 1
    
  • Search for tasks by description

    cargo run -- search -q "query"
    

Help

Display the help message:

cargo run -- --help

Display the version information:

cargo run -- --version

License

This project is licensed under the MIT License. See the LICENSE file for details.

Dependencies

~1.5–2.6MB
~49K SLoC