MCPcopy
hub / github.com/dlt-hub/dlt / pipeline_command_wrapper

Function pipeline_command_wrapper

dlt/_workspace/cli/_pipeline_command.py:459–470  ·  view source on GitHub ↗
(
    operation: str, pipeline_name: str, pipelines_dir: str, verbosity: int, **command_kwargs: Any
)

Source from the content-addressed store, hash-verified

457
458
459def pipeline_command_wrapper(
460 operation: str, pipeline_name: str, pipelines_dir: str, verbosity: int, **command_kwargs: Any
461) -> None:
462 try:
463 pipeline_command(operation, pipeline_name, pipelines_dir, verbosity, **command_kwargs)
464 except CannotRestorePipelineException as ex:
465 fmt.secho(str(ex), err=True, fg="red")
466 fmt.secho(
467 "Try command %s to restore the pipeline state from destination"
468 % fmt.bold(fmt.cli_cmd(f"pipeline {pipeline_name} sync"))
469 )
470 raise CliCommandException(error_code=-2)

Callers

nothing calls this directly

Calls 2

CliCommandExceptionClass · 0.90
pipeline_commandFunction · 0.85

Tested by

no test coverage detected