Home

Awesome

Learn Rust by 500 lines code

crate_version crate_downloads license

English | 中文

rtd_list_all

Table of contents


What can you learn from RTD?

Assuming you know nothing about Rust, through the Learn Rust by 500 lines code tutorial, step by step to build the project from scratch, you will learn:

Architecture

rtd_arch

Storage

Use a local file $HOME/.rtd.csv store all data

data_storage rtd_list_all

After completing this tutorial or installing RTD directly, you will get:


Interesting fact: I use RTD to complete the RTD tutorial :)

If you like my tutorial, don't forget to give me a star~


Prepare

Install

Via crate.io :

cargo install rtd-tutorial

Or via git repo :

git clone https://github.com/cuppar/rtd.git
cargo install --path rtd

Usage

View help document

rtd -h
rtd --help

rtd_help_summary rtd_help

Add a todo

rtd -a <item-name>
rtd --add <item-name>

rtd_add

List all uncompleted todos

rtd
rtd -l
rtd -l uncompleted
rtd --list
rtd --list uncompleted

rtd_list_uncompleted

Complete a todo

rtd -c <item-id>
rtd --complete <item-id>

rtd_complete_item

List all completed todos

rtd -l completed
rtd --list completed

rtd_list_completed

Uncomplete a todo

rtd -u <item-id>
rtd --uncomplete <item-id>

rtd_uncomplete_item

Throw a todo into the recycle bin

rtd -d <item-id>
rtd --delete <item-id>

rtd_delete_item

List all recycle bin todos

rtd -l deleted
rtd --list deleted

rtd_list_deleted

Restore a todo from the recycle bin

rtd -r <item-id>
rtd --restore <item-id>

rtd_restore_item

Physically destroy a todo

rtd --destroy <item-id>

rtd_destroy_item

Empty recycle bin

rtd --destroy-deleted

rtd_destroy_deleted

List all todos

rtd -l all
rtd --list all

rtd_list_all

Clear all todos

rtd --clear

rtd_clear

About author

Cuppar He(He Zhiying), software development engineer, likes programming, technical writing, learning new things, especially computer science, worked for SAP(World Top 100) and Alibaba Group(World Top 100 & Chinese internet giant). I am currently in Gap Year, if you are looking for a software development engineer and can provide a high-quality offer(Both remote and on-site), please contact me cuppar.hzy@gmail.com.