Skip to content

Commit

Permalink
Added click auto-complete
Browse files Browse the repository at this point in the history
  • Loading branch information
retr0h committed Mar 14, 2020
1 parent dd82b08 commit b6200d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion gilt/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import os

import click
import click_completion
import fasteners

import gilt
Expand Down Expand Up @@ -49,7 +50,22 @@ class NotFoundError(Exception):
@click.version_option(version=gilt.__version__)
@click.pass_context
def main(ctx, config, debug): # pragma: no cover
"""gilt - A GIT layering tool. """
"""
\b
o o
o | |
o--o | -o-
| | | | |
o--O | o o
|
o--o
gilt - A GIT layering tool.
Enable autocomplete issue:
eval "$(_GILT_COMPLETE=source gilt)"
"""
ctx.obj = {}
ctx.obj["args"] = {}
ctx.obj["args"]["debug"] = debug
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ setup_requires =
# These are required in actual runtime:
install_requires =
click
click-completion
colorama
fasteners
PyYAML
Expand Down

0 comments on commit b6200d0

Please sign in to comment.