Skip to content

Commit a3e9998

Browse files
mohammad-alisafaeejsam
authored andcommitted
fix: hide image, pull, runner, show, workon and deactivate commands (#672)
* hide deactivate, image, pull, runner, show, workon commands from cli * use click v7 for hidden option
1 parent fd0a92f commit a3e9998

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

renku/cli/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
from ._docker import detect_registry_url
7575

7676

77-
@click.group()
77+
@click.group(hidden=True)
7878
def image():
7979
"""Manipulate images related to the Renku project."""
8080

renku/cli/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import click
2121

2222

23-
@click.group()
23+
@click.group(hidden=True)
2424
def pull():
2525
"""Pull latest data from server."""
2626

renku/cli/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
CI_TEMPLATES = [_GITLAB_CI, _DOCKERFILE, _REQUIREMENTS]
3434

3535

36-
@click.group()
36+
@click.group(hidden=True)
3737
def runner():
3838
"""Simplify running of CI scripts."""
3939

renku/cli/show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
from ._graph import Graph
7474

7575

76-
@click.group()
76+
@click.group(hidden=True)
7777
def show():
7878
"""Show information about objects in current repository.
7979

renku/cli/workon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
from ._git import _safe_issue_checkout
2424

2525

26-
@click.command()
26+
@click.command(hidden=True)
2727
@click.argument('issue', type=click.INT)
2828
@pass_local_client(clean=True, up_to_date=True, commit=False)
2929
def workon(client, issue):
3030
"""Activate environment for tracking work on a specific problem."""
3131
_safe_issue_checkout(client.repo, issue=issue)
3232

3333

34-
@click.command()
34+
@click.command(hidden=True)
3535
@pass_local_client(clean=True, up_to_date=True, commit=False)
3636
def deactivate(client):
3737
"""Deactivate environment for tracking work on a specific problem."""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
'appdirs>=1.4.3',
7070
'attrs>=18.2.0',
7171
'click-completion>=0.5.0',
72-
'click>=6.7',
72+
'click>=7.0',
7373
'cryptography>=2.7',
7474
'cwltool==1.0.20181012180214',
7575
'environ_config>=18.2.0',

0 commit comments

Comments
 (0)