kedro.framework.cli.hooks.specs.CLICommandSpecs

class kedro.framework.cli.hooks.specs.CLICommandSpecs[source]

Bases: object

Namespace that defines all specifications for Kedro CLI’s lifecycle hooks.

Attributes

Methods

CLICommandSpecs.before_command_run(…)

Hooks to be invoked before a CLI command runs.

__init__()

Initialize self. See help(type(self)) for accurate signature.

before_command_run(project_metadata, command_args)[source]

Hooks to be invoked before a CLI command runs. It receives the project_metadata as well as all command line arguments that were used, including the command and subcommand themselves.

Parameters
  • project_metadata (ProjectMetadata) – The Kedro project’s metadata.

  • command_args (List[str]) – The command line arguments that were used.