Skip to content

vedran77/cli-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI To-Do List

A simple Command-Line Interface (CLI) To-Do list application written in Rust. This application allows you to manage your tasks directly from the terminal.

Features

  • Add a new task
  • List all tasks
  • Mark a task as complete
  • Remove a task
  • Edit a task description

Installation

  1. Install Rust: Make sure you have Rust installed. If not, follow the instructions here.

  2. Clone the repository:

    git clone https://github.com/vedran77/cli-todo.git
    cd cli_todo
  3. Build the project:

    cargo build --release

Usage

Navigate to the project directory and use the following commands:

Add a Task

Add a new task to the list.

cargo run -- add "Your task description"

List All Tasks

List all tasks with their completion status.

cargo run -- list

Complete a Task

Mark a task as complete by specifying its index.

cargo run -- complete [index]

Example:

cargo run -- complete 0

Remove a Task

Remove a task from the list by specifying its index.

cargo run -- remove [index]

Example:

cargo run -- remove 0

Edit a Task

Edit an existing task's description by specifying its index and the new description.

cargo run -- edit [index] "New task description"

Example:

cargo run -- edit 0 "Learn Rust"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages