Skip to content

Commit

Permalink
Bump to 0.6.0
Browse files Browse the repository at this point in the history
* update README.md

Signed-off-by: Eric Wang <skygragon@gmail.com>
  • Loading branch information
skygragon committed Oct 15, 2016
1 parent 1e85050 commit 7fdb08a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 17 deletions.
6 changes: 6 additions & 0 deletions doc/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* [Bash Completion](#bash-completion)
* [Colorful Output](#colorful-output)
* [Debug Output](#debug-output)
* [Configuration](#configuration)
* [Cache](#cache)
* [Auto Login](#auto-login)
Expand All @@ -27,6 +28,11 @@ Copy `.lc-completion.bash` to your home directory, and source it in .bashrc (Lin

Or use configuration setting to avoid typing it repeatedly, see [below](#configuration).

## Debug Output

* `-v` to enable debug output.
* `-vv` to enable trace output.

## Configuration

Create a JSON file named `.lcconfig` in your home directory, e.g.
Expand Down
53 changes: 37 additions & 16 deletions doc/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* [help](#help)
* [list](#list)
* [show](#show)
* [star](#star)
* [submission](#submission)
* [submit](#submit)
* [test](#test)
Expand Down Expand Up @@ -51,6 +52,7 @@ Navigate all the problems. The heading `✔` means you have AC-ed the problem, `
* `h` = hard, `H` = e + m.
* `d` = done = AC-ed, `D` = not AC-ed.
* `l` = locked, `L` = not locked.
* `s` = starred, `S` = unstarred.
* `-s` to show statistic counters.
* `lc list <keyword>` to search by keyword matching.

Expand All @@ -59,20 +61,20 @@ Navigate all the problems. The heading `✔` means you have AC-ed the problem, `
Show statistcis:

$ lc list -s

[385] Mini Parser Medium (26.5%)
✘ [384] Shuffle an Array Medium (45.7%)
✔ [383] Ransom Note Easy (44.5%)
✔ [382] Linked List Random Node Medium (46.6%)
......
✔ [ 4] Median of Two Sorted Arrays Hard (19.6%)
✔ [ 3] Longest Substring Without Repeating Characters Medium (22.9%)
✔ [ 2] Add Two Numbers Medium (24.5%)
✔ [ 1] Two Sum Easy (25.6%)

All: 394 Listed: 394 Lock: 72
AC: 196 Not-AC: 15 New: 183
Easy: 105 Medium: 202 Hard: 87
[385] Mini Parser Medium (26.5%)
✘ [384] Shuffle an Array Medium (45.7%)
✔ [383] Ransom Note Easy (44.5%)
✔ [382] Linked List Random Node Medium (46.6%)
......
✔ [ 4] Median of Two Sorted Arrays Hard (19.6%)
✔ [ 3] Longest Substring Without Repeating Characters Medium (22.9%)
✔ [ 2] Add Two Numbers Medium (25.37 %)
✔ [ 1] Two Sum Easy (27.61 %)

All: 400 Listed: 400
Locked: 73 Starred: 3
Accept: 196 Not-AC: 15 New: 189
Easy: 106 Medium: 207 Hard: 87

Use keyword search and query:

Expand All @@ -86,6 +88,7 @@ Use keyword search and query:
Display problem details. With `-g`+`-l`, the code template could be auto generated for you.

* `-g` to generate source file.
* `-x` to add problem details in the generated source file.
* `-l` to choose programming language. (Depends on which langs are provided on leetcode)
* c
* cpp
Expand Down Expand Up @@ -127,6 +130,23 @@ Display problem details. With `-g`+`-l`, the code template could be auto generat
UPDATE (2016/2/13):
The return format had been changed to zero-based indices. Please read the above updated description carefully.

## star

Mark your favorite problems. The starred problem will be shown with a ``.

* `-d` to unstar.
* Instead of index number, you can use name to star a problem.
* `lc star "Two Sum"`
* `lc star two-sum`

*Example*

$ lc star 1
[1] Two Sum ★

$ lc star 1 -d
[1] Two Sum ☆

## submission

Retrieve your existing submissions from leetcode.com and save to local files.
Expand All @@ -139,6 +159,7 @@ Available options:

* `-o` to specify the output folder.
* `-a` to work against all problems.
* `-x` to add problem details in the output file.
* Or work against specfic problem only.
* `lc submission 1`
* `lc submission two-sum`
Expand Down Expand Up @@ -228,7 +249,7 @@ Display version information.
Short:

$ lc version
0.5.0
0.6.0

Verbose:

Expand All @@ -238,7 +259,7 @@ Verbose:
| | ___ ___| |_ ___ ___ __| | ___
| |/ _ \/ _ \ __|/ __|/ _ \ / _` |/ _ \
| | __/ __/ |_ (__| (_) | (_| | __/
|_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v0.5.0
|_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v0.6.0

[Environment]
Cache: /Users/skygragon/.lc/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leetcode-cli",
"version": "0.5.0",
"version": "0.6.0",
"description": "A cli tool to enjoy leetcode!",
"preferGlobal": "true",
"bin": {
Expand Down

0 comments on commit 7fdb08a

Please sign in to comment.