Skip to content

Commit

Permalink
style: fix overload and cli autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
jina-bot committed Aug 18, 2022
1 parent 1236d85 commit 8ea3f43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jina/resources/extra-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ grpcio-health-checking>=1.46.0: core
pyyaml>=5.3.1: core
packaging>=20.0: core
docarray>=0.13.14: core
jina-hubble-sdk==0.12.4: core
jina-hubble-sdk>=0.13.0: core
jcloud>=0.0.35: core
uvloop: perf,standard,devel
prometheus_client: perf,standard,devel
Expand Down
16 changes: 8 additions & 8 deletions jina_cli/autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
'export',
'new',
'gateway',
'hub',
'auth',
'hub',
'cloud',
'help',
'pod',
Expand Down Expand Up @@ -151,6 +151,13 @@
'--retries',
'--floating',
],
'auth login': ['--help', '--force'],
'auth logout': ['--help'],
'auth token create': ['--help', '--expire'],
'auth token delete': ['--help'],
'auth token list': ['--help'],
'auth token': ['--help', 'create', 'delete', 'list'],
'auth': ['--help', 'login', 'logout', 'token'],
'hub new': [
'--help',
'--name',
Expand Down Expand Up @@ -184,13 +191,6 @@
'--force',
],
'hub': ['--help', 'new', 'push', 'pull'],
'auth login': ['--help', '--force'],
'auth logout': ['--help'],
'auth token create': ['--help', '--expire'],
'auth token delete': ['--help'],
'auth token list': ['--help'],
'auth token': ['--help', 'create', 'delete', 'list'],
'auth': ['--help', 'login', 'logout', 'token'],
'cloud login': ['--help'],
'cloud deploy': ['--help', '--name', '--workspace', '--env-file'],
'cloud list': ['--help', '--status'],
Expand Down

0 comments on commit 8ea3f43

Please sign in to comment.