[−][src]Crate leetcode_cli
leetcode-cli
Not Available for Now
If you need to, keep time on me...expect to launch at v0.3.0.
and,
the DEADLINE is Sub Jan 5 23:59:59 CST 2020
.
Note
(only support OSX temporarily)
Please make sure you have logined in leetcode.com
with chrome
.
Features
- the edit flow —— solution files will generate automatically!
- doc support,
lc-rs
can compile the annotation of your solutions to markdown!- btw, generate a site is easy for
lc-rs
!
- btw, generate a site is easy for
- support local signal to keep coding as longer as you want.
Building
cargo install leetcode-cli
Usage
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)
Example
For example, if your config is:
[storage]
code = "code"
[code]
lang = "rust"
editor = "emacs"
1. pick a question:
leetcode pick 1
lc-rs
will generate 1.two-sum.alogrithms
at ~/.leetcode/code/1.two-sum.algorithms.rs
2. edit it
leetcode edit 1
3. The emacs
will be with you
coding...
4. test it.
leetcode test 1
5. submit it
leetcode submit 1
PR
PR is welcome, here it is.
LICENSE
MIT
Re-exports
pub use cfg::Config; |
pub use err::Error; |
pub use cache::Cache; |
Modules
cache | Save OAbad network'OAs ass. |
cfg | show docs
Soft-link with |
cli | really pub Clap commander |
cmds | All subcommands in leetcode-cli |
err | Errors in leetcode-cli |
flag | Flags in leetcode-cli |
helper | A set of helper traits |
plugins | Leetcode-cil plugins |