GithubHelp home page GithubHelp logo

todo-cli-by-rust's Introduction

Rust Training

Introduction

The application is a command-line to-do tracker.

It records our tasks into a text file, displays them as a list in the terminal, and lets us mark them complete.

Usage

NOTE: The following instructions assume that you have Docker installed on your machine.

Step 1: Pull the Docker Image

$ docker pull rust:1.76.0-bookworm

Step 2: Run the Docker Container

$ bin/run -- -h
Rusty Journal 0.1.0
A command line to-do app written in Rust.

USAGE:
    todo [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -j, --journal-file <journal-file>    Use a different journal file

SUBCOMMANDS:
    add     Write tasks to the journal file
    done    Remove an entry from the journal file by position
    help    Prints this message or the help of the given subcommand(s)
    list    List all tasks in the journal file

NOTE: If you can't run the bin/run script, you may need to give it execute permissions.

$ chmod +x bin/run

Example

$ bin/run -- -j test-journal.json add "Study Rust"
$ bin/run -- -j test-journal.json list
1: buy milk                                           [2024-03-02 11:27](UTC)
2: water the plants                                   [2024-03-02 11:28](UTC)
3: Study Rust                                         [2024-03-03 02:17](UTC)

Thanks

Microsoft Training - Build a command-line to-do list program

todo-cli-by-rust's People

Contributors

iloveomelette avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.