Skip to content

Commit

Permalink
Bump to 2.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wang <[email protected]>
  • Loading branch information
skygragon committed Jan 6, 2018
1 parent 6c1d9d5 commit ad529b0
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 50 deletions.
40 changes: 30 additions & 10 deletions docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,35 @@ layout: default
title: Advanced Topic
---

* [Aliases](#aliases)
* [Auto Login](#auto-login)
* [Bash Completion](#bash-completion)
* [Cache](#cache)
* [Configuration](#configuration)
* [Color Theme](#color-theme)
* [Log Level](#log-level)
* [Color Themes](#color-themes)
* [Log Levels](#log-levels)
* [Plugins](#plugins)

# Auto login
# Aliases

The commands in leetcode-cli usually has builtin aliases as below:

|Command |Aliases |
|----------|-----------------------|
|config |conf, cfg, setting |
|list |ls |
|plugin |extension, ext |
|session |branch |
|show |view, pick |
|star |like, favorite |
|stat |stats, progress, report|
|submission|pull |
|submit |push, commit |
|test |run |
|user |account |
|version |info, env |

# Auto Login

Leetcode.com is restricting only one session alive in the same time, which means if you login same account otherwhere, the existing login session will be expired immediately. This will greatly harm your experience since you have to re-login again and again among different sessions.

Expand Down Expand Up @@ -82,13 +102,13 @@ The config file is saved in `~/.lc/config.json`, here is a full exmaple (include

Here are some useful settings:

* `autologin:enable` to enable auto login feature, see [Auto Login](#auto-login).
* `autologin:enable` to enable auto login feature. (see [Auto Login](#auto-login))
* `code:editor` to set editor used to open generated source file.
* `code:lang` to set your default language used in coding.
* `color:enable` to enable colorful output.
* `color:theme` to set color theme used in output, see [Color Theme](#color-theme).
* `color:theme` to set color theme used in output. (see [Color Theme](#color-theme))
* `icon:theme` to set icon them used in output.
* `plugins` to config each installed plugins, see [Plugins](#plugins).
* `plugins` to config each installed plugins. (see [Plugins](#plugins))

**NOTE: Normally you don't need dig into the folder to manipulate those files. Use [config command](https://skygragon.github.io/leetcode-cli/commands#config) instead.**

Expand All @@ -109,16 +129,16 @@ Config for `github.js` and `cpp.lint.js` plugins:
}
}

# Color Theme
# Color Themes

You can choose to use colorful output or not.

* `--color` to enable color.
* `--no-color` to disable it.

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

When color is enabled, you can choose your favor color theme as well, see [color:theme](#configuration).
When color is enabled, you can choose your favor color theme as well. (see [color:theme](#configuration))

Following are available themes:

Expand Down Expand Up @@ -147,7 +167,7 @@ Of course you can create your own themes if you like, look into `colors` folder
"yellow": "#ffff00"
}

# Log Level
# Log Levels

* `-v` to enable debug output.
* `-vv` to enable trace output.
Expand Down
4 changes: 2 additions & 2 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ Display version information.
Short:

$ leetcode version
2.4.0
2.5.0

Verbose:

Expand All @@ -475,7 +475,7 @@ Verbose:
| | ___ ___| |_ ___ ___ __| | ___
| |/ _ \/ _ \ __|/ __|/ _ \ / _` |/ _ \
| | __/ __/ |_ (__| (_) | (_| | __/
|_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v2.4.0
|_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v2.5.0

[Environment]
Node v8.1.4
Expand Down
90 changes: 53 additions & 37 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,84 +2,100 @@
layout: default
title: Release Notes
---
# 2.5.0

* add `session` command to manage coding sessions on leetcode.com.
* add more color themes.
* molokai
* solarized
* solarized.light
* `list`
* fix id mismatch issue.
* `show`
* add `-o` option to specify output folder.
* fix badge output in non-default color themes.
* `stat`
* calculate on AC-ed questions in calendar graph.
* `test`
* fix out-of-order output issue.

# 2.4.0

* only supports node's version >= 4.
* Refactor folder structure:
* now `~/.lc/` would be the only folder used by leetcode-cli.
* move lcconfig file to `~/.lc/`.
* move cache files to `~/.lc/cache/`.
* now `~/.lc/` would be the only folder used by leetcode-cli.
* move lcconfig file to `~/.lc/`.
* move cache files to `~/.lc/cache/`.
* `config`
* fix string value parsing error.
* fix string value parsing error.
* `list`
* show tag/lang badges in `-x` output.
* show tag/lang badges in `-x` output.
* `show`
* add `-q` `-t` options to filter random questions.
* add `-q` `-t` options to filter random questions.
* `stat`
* enhance output of `-g` option.
* enhance output on windows.
* add `-c` option to display calendar stat of how many AC-ed questions per day.
* add `--no-lock` option to filter out locked questions.
* add `-q` `-t` options to filter questions stat.
* enhance output of `-g` option.
* enhance output on windows.
* add `-c` option to display calendar stat of how many AC-ed questions per day.
* add `--no-lock` option to filter out locked questions.
* add `-q` `-t` options to filter questions stat.

# 2.3.0

* `plugin`
* only install necessary depedencies on specific platform.
* add `-c` option to show plugin config.
* support [cookie.chrome](https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md) plugin.
* support [cookie.firefox](https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.firefox.md) plugin.
* only install necessary depedencies on specific platform.
* add `-c` option to show plugin config.
* support [cookie.chrome](https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md) plugin.
* support [cookie.firefox](https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.firefox.md) plugin.
* docker
* support running leetcode-cli as docker container for new user's tasting.
* auto build docker image in Docker Hub.
* support running leetcode-cli as docker container for new user's tasting.
* auto build docker image in Docker Hub.
* UI
* Add spinner message for long time running works.
* Add spinner message for long time running works.
* Add logo and updte documents.

# 2.2.1

* add commands aliases.
* enhance documents about install error on Ubuntu.
* `config`
* fix wrong parsing on non-string value.
* fix wrong parsing on non-string value.
* `plugin`
* fix bug when installing new npm modules.
* fix bug when installing new npm modules.
* `show`
* use traditional `.py` for python3 filename.
* use traditional `.py` for python3 filename.
* `submission`
* enhance recursive folder creation.
* enhance recursive folder creation.

# 2.2.0

* `config`
* add new `config` command to manage user configs.
* try to save user from manually editing config file (~/.lcconfig).
* start to use new json config format. (NOTE: not compatible with old format!)
* add new `config` command to manage user configs.
* try to save user from manually editing config file (~/.lcconfig).
* start to use new json config format. (NOTE: not compatible with old format!)
* `show`
* print suppoerted language list.
* print suppoerted language list.
* add Release Notes page.
* remove several legacy hacks.

# 2.1.1
* `show`
* add `-e` option to open editor for coding.
* add `-c` option to display source code only.
* remove legacy `-t` `-d` options.
* fix bad alignment in colorful output.
* add `-e` option to open editor for coding.
* add `-c` option to display source code only.
* remove legacy `-t` `-d` options.
* fix bad alignment in colorful output.
* `list`
* enhance `-t` option to support multiple tags, e.g. `leetcode list -t google -t array`
* support latest `company` plugin to filter questions by tags like `array` or `dynamic programming`
* enhance `-t` option to support multiple tags, e.g. `leetcode list -t google -t array`
* support latest `company` plugin to filter questions by tags like `array` or `dynamic programming`
* config
* add `EDITOR` to set default editor.
* add `EDITOR` to set default editor.
* fix `--no-color` bug.


# 2.1.0
* `show`
* fix "unknown language" error due to recent API changes on leetcode.com.
* add `kotlin` language.
* fix "unknown language" error due to recent API changes on leetcode.com.
* add `kotlin` language.
* `cache`
* remove `-a` option, now `leetcode cache -d` will directly clear all cache.
* add keyword match, e.g. `leetcode cache 537` will only show the cache for question 537.
* remove `-a` option, now `leetcode cache -d` will directly clear all cache.
* add keyword match, e.g. `leetcode cache 537` will only show the cache for question 537.
* update most libray depedencies.
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": "2.4.0",
"version": "2.5.0",
"description": "A cli tool to enjoy leetcode!",
"preferGlobal": "true",
"engines": {
Expand Down

0 comments on commit ad529b0

Please sign in to comment.