From 7cc79a6abbd5c3549ba60b88000b4be18405b374 Mon Sep 17 00:00:00 2001 From: Patrick Magee Date: Tue, 19 Nov 2024 09:41:27 -0500 Subject: [PATCH] [CU-86b2x7u3g] fixed commands not showing up under omics --- dnastack/omics_cli.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dnastack/omics_cli.py b/dnastack/omics_cli.py index 9672aaf..b8bdeb9 100644 --- a/dnastack/omics_cli.py +++ b/dnastack/omics_cli.py @@ -65,11 +65,18 @@ def version(): name='context_name', arg_names=['--name'], help='Context name -- default to hostname' + ), + ArgumentSpec( + name='no_auth', + arg_names=['--no-auth'], + help='Skip automatic authentication if set', + type=bool, + required=False, + hidden=True, ) ] ) -def use( - registry_hostname_or_url: str, +def use(registry_hostname_or_url: str, context_name: Optional[str] = None, no_auth: bool = False): """ @@ -90,7 +97,7 @@ def use( # noinspection PyTypeChecker omics.add_command(drs_command_group) # noinspection PyTypeChecker -omics.add_command(auth_command_group()) +omics.add_command(auth_command_group) # noinspection PyTypeChecker omics.add_command(collections_command_group) # noinspection PyTypeChecker