Crates.io | rtd-tutorial |
lib.rs | rtd-tutorial |
version | 0.1.23 |
source | src |
created_at | 2023-07-26 06:35:25.841239 |
updated_at | 2023-09-05 09:50:07.591278 |
description | Learn Rust by 500 lines code, build a Rust ToDo cli tool. |
homepage | https://github.com/cuppar/rtd |
repository | https://github.com/cuppar/rtd |
max_upload_size | |
id | 926231 |
size | 3,340,616 |
English | 中文
package
/binary crate
/library crate
/mod
/pub
/use
)Result<T, E>
/Option<T>
)if let
, match
...)File Seek
/Buffed File I/O
)Use a local file $HOME/.rtd.csv
store all data
Interesting fact: I use RTD to complete the RTD tutorial :)
If you like my tutorial, don't forget to give me a star~
linux
environment, and Windows
/MacOS
are also supported. You can choose to download the corresponding Cargo
according to your own operating system.Cargo
Rust's package management and build tool, can be installed directly through the Rust official website rustup
one line command. Then, all things will be done by Cargo
, so cute, right?crate.io
:cargo install rtd-tutorial
git repo
:git clone https://github.com/cuppar/rtd.git
cargo install --path rtd
rtd -h
rtd --help
rtd -a <item-name>
rtd --add <item-name>
rtd
rtd -l
rtd -l uncompleted
rtd --list
rtd --list uncompleted
rtd -c <item-id>
rtd --complete <item-id>
rtd -l completed
rtd --list completed
rtd -u <item-id>
rtd --uncomplete <item-id>
rtd -d <item-id>
rtd --delete <item-id>
rtd -l deleted
rtd --list deleted
rtd -r <item-id>
rtd --restore <item-id>
rtd --destroy <item-id>
rtd --destroy-deleted
rtd -l all
rtd --list all
rtd --clear
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
.