Skip to content

Commit

Permalink
release v1.0.2
Browse files Browse the repository at this point in the history
fix: color command bug.
  • Loading branch information
zlj-zz committed Jul 30, 2021
1 parent 12c28f3 commit fa53e40
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Zhang",
"datefmt",
"elisp",
"gitbook",
"hexa",
"msecs",
"nargs",
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Changelog of pygittools
^^^^^^^^^^^^^^^^^^^^^^^^

v1.0.2 (2021-07-30)
----------
- Add debug mode.
- Update completion function.
- Support create \``.gitignore`\` template according to given type.
- Show runtime.
- Improve print, more color and beautiful.
- Fix color compatibility with python2.

v1.0.1 (2021-07-28)
----------
- Support quick view of GIT config
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ You can use -h and --help to get help and more usage.
You can run `g -h` or `g --help` to get the help message.

```bash
usage: g [-h] [-c] [-s] [-S TYPE] [-t] [-f] [-i] [-v] [--debug] [--out-log] [command] [args ...]
usage: g [-h] [-c] [-s] [-S TYPE] [-t] [-f] [-i] [-v] [--create-ignore TYPE] [--debug] [--out-log] [command] [args ...]

If you want to use some original git commands, please use -- to indicate.

Expand All @@ -60,11 +60,16 @@ optional arguments:
-c, --complete Add shell prompt script and exit.(Supported `bash`, `zsh`)
-s, --show-commands List all available short command and wealth and exit.
-S TYPE, --show-command TYPE
According to given type list available short command and wealth and exit.
According to given type(Branch, Commit, Conflict, Fetch, Index, Log, Merge, Push, Remote, Stash, Tag, Working
tree, Setting) list available short command and wealth and exit.
-t, --types List all command types and exit.
-f, --config Display the config of current git repository and exit.
-i, --information Show some information about the current git repository.
-v, --version Show version and exit.
--create-ignore TYPE Create a demo .gitignore file. Need one argument, support: [android, c++, cpp, c, dart, elisp, gitbook, go,
java, kotlin, lua, maven, node, python, qt, r, ros, ruby, rust, sass, swift, unity]
--debug Run in debug mode.
--out-log Print log to console.

runtime: 0.001976s
```
5 changes: 3 additions & 2 deletions pygittools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

__project__ = "git-tools"
__license__ = "MIT"
__version__ = "1.0.2-beta"
__version__ = "1.0.2"
__author__ = "Zachary Zhang"
__email__ = "zlj19971222@outlook.com"
__git_url__ = "https://github.com/zlj-zz/pygittools.git"
Expand Down Expand Up @@ -1129,9 +1129,10 @@ def color_command(command):
color_command += temp + " "
else:
break

color_command += Fx.reset
if len(command_list) > 0:
color_command += " ".join(command_list)
color_command += Fx.reset

return color_command

Expand Down

0 comments on commit fa53e40

Please sign in to comment.