Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cirro/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from cirro.cli.controller import run_ingest, run_download, run_configure, run_list_datasets
from cirro.cli.controller import run_create_pipeline_config, run_validate_folder
from cirro.cli.controller import run_list_projects, run_list_files
from cirro.cli.controller import run_list_projects, run_list_files, run_debug

__all__ = [
'run_ingest',
Expand All @@ -11,4 +11,5 @@
'run_validate_folder',
'run_list_projects',
'run_list_files',
'run_debug',
]
17 changes: 16 additions & 1 deletion cirro/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from cirro.cli import run_create_pipeline_config, run_validate_folder
from cirro.cli import run_ingest, run_download, run_configure, run_list_datasets
from cirro.cli.controller import handle_error, run_upload_reference, run_list_projects, run_list_files
from cirro.cli.controller import handle_error, run_upload_reference, run_list_projects, run_list_files, run_debug
from cirro.cli.interactive.utils import InputError


Expand Down Expand Up @@ -142,6 +142,21 @@ def upload_reference(**kwargs):
run_upload_reference(kwargs, interactive=kwargs.get('interactive'))


@run.command(help='Debug a failed workflow execution', no_args_is_help=True)
@click.option('--project',
help='Name or ID of the project',
default=None)
@click.option('--dataset',
help='Name or ID of the dataset',
default=None)
@click.option('-i', '--interactive',
help='Gather arguments interactively',
is_flag=True, default=False)
def debug(**kwargs):
check_required_args(kwargs)
run_debug(kwargs, interactive=kwargs.get('interactive'))


@run.command(help='Configure authentication')
def configure():
run_configure()
Expand Down
Loading
Loading