Skip to content

lrpj/Rusty-spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Rusty-spoon Todo CLI

A simple command-line todo application written in Rust.

Prerequisites

How to Run

  1. Open a terminal and navigate to the project directory:
    cd C:\Users\pinhe\Documents\Informatikk\Rusty-spoon\project
  2. Build and run the program:
    cargo run -- [COMMAND]
    Replace [COMMAND] with one of the options below.

Commands

  • Add a new todo
    cargo run -- add "Your todo text here"
  • List all todos
    cargo run -- list
  • Mark a todo as done
    cargo run -- done <id>
    Replace <id> with the number of the todo to mark as done.
  • Remove a todo
    cargo run -- remove <id>
    Replace <id> with the number of the todo to remove.

Example Usage

cargo run -- add "Buy groceries"
cargo run -- list
cargo run -- done 1
cargo run -- remove 1

Todos are saved in todos.json in the project directory.

About

Learning how to Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •