From 7fdb08a7755ca6f2b2087edfdb18be6518e075ee Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Sat, 15 Oct 2016 11:38:40 +0800 Subject: [PATCH] Bump to 0.6.0 * update README.md Signed-off-by: Eric Wang --- doc/advanced.md | 6 ++++++ doc/commands.md | 53 ++++++++++++++++++++++++++++++++++--------------- package.json | 2 +- 3 files changed, 44 insertions(+), 17 deletions(-) diff --git a/doc/advanced.md b/doc/advanced.md index fa27ad1b..6acc4203 100644 --- a/doc/advanced.md +++ b/doc/advanced.md @@ -2,6 +2,7 @@ * [Bash Completion](#bash-completion) * [Colorful Output](#colorful-output) +* [Debug Output](#debug-output) * [Configuration](#configuration) * [Cache](#cache) * [Auto Login](#auto-login) @@ -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. diff --git a/doc/commands.md b/doc/commands.md index a5678bc3..b28ab4a2 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -3,6 +3,7 @@ * [help](#help) * [list](#list) * [show](#show) +* [star](#star) * [submission](#submission) * [submit](#submit) * [test](#test) @@ -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 ` to search by keyword matching. @@ -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: @@ -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 @@ -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. @@ -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` @@ -228,7 +249,7 @@ Display version information. Short: $ lc version - 0.5.0 + 0.6.0 Verbose: @@ -238,7 +259,7 @@ Verbose: | | ___ ___| |_ ___ ___ __| | ___ | |/ _ \/ _ \ __|/ __|/ _ \ / _` |/ _ \ | | __/ __/ |_ (__| (_) | (_| | __/ - |_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v0.5.0 + |_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v0.6.0 [Environment] Cache: /Users/skygragon/.lc/ diff --git a/package.json b/package.json index a334e03e..b71e8c13 100644 --- a/package.json +++ b/package.json @@ -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": {