Skip to content

rishipatel9/Cli-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo CLI

A simple command-line interface (CLI) application written in Rust to manage your to-do tasks. This application allows you to add, list, and mark tasks as completed, with the data stored in a JSON file.

Features

  • Add new tasks to your to-do list.
  • List all tasks, showing their status (completed or not).
  • Mark tasks as completed.

Getting Started

Prerequisites

To run this project, you'll need to have the following installed:

Installation

  1. Clone the repository:

    https://github.com/rishipatel9/Cli-todo.git
    cd rust-todo
  2. Build the Project

    cargo build
  3. Run the project:

     cargo run --[Command]

Usage

Adding a task

  1. Add a task:

     cargo run -- add "Learn rust"

Listing todos

  1. List todos:

     cargo run -- list

Marking todos

  1. Marking todo as completed:

    cargo run -- completed 1
  2. Example

    cargo run -- add "Learn go"
    
    cargo run -- list
    
    cargo run -- completed 1
  3. Example of todo.json

    [
        {
            "id": 1,
            "title": "Finish Rust project",
            "completed": false
        },
        {
            "id": 2,
            "title": "Write README",
            "completed": true
        }
    ]

About

A Simple Rust todo cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages