(only support OSX temporarily)
Please make sure you have logined in leetcode.com
with chrome
.
lc-rs
can compile the annotation of your solutions to markdown!
lc-rs
!
cargo install leetcode-cli
```sh leetcode 0.1.8 clearloop udtrokia@163.com Leet your code in command-line.
USAGE: leetcode [FLAGS] [SUBCOMMAND]
FLAGS: -d, --debug debug mode -h, --help Prints help information -V, --version Prints version information
SUBCOMMANDS: data Manage Cache [aliases: d] edit Edit question by id [aliases: e] list List problems [aliases: l] pick Pick a problem [aliases: p] stat Show simple chart about submissions [aliases: s] test Edit question by id [aliases: t] help Prints this message or the help of the given subcommand(s) ```
For example, if your config is:
```toml [storage] code = "code"
[code] lang = "rust" editor = "emacs" ```
leetcode pick 1
lc-rs
will generate 1.two-sum.alogrithms
at ~/.leetcode/code/1.two-sum.algorithms.rs
leetcode edit 1
emacs
will be with you
coding...
leetcode test 1
leetcode submit 1
PR is welcome, here it is.
MIT