Skip to content

Commit

Permalink
Make kedro micropkg package accept --verbose
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
  • Loading branch information
astrojuanlu committed May 26, 2023
1 parent f1e1c5d commit a2404bc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions kedro/framework/cli/micropkg.py
Expand Up @@ -227,7 +227,7 @@ def _package_micropkgs_from_manifest(metadata: ProjectMetadata) -> None:
click.secho("Micro-packages packaged!", fg="green")


@micropkg.command("package")
@command_with_verbosity(micropkg, "package")
@env_option(
help="Environment where the micro-package configuration lives. Defaults to `base`."
)
Expand All @@ -254,8 +254,14 @@ def _package_micropkgs_from_manifest(metadata: ProjectMetadata) -> None:
@click.argument("module_path", nargs=1, required=False, callback=_check_module_path)
@click.pass_obj # this will pass the metadata as first argument
def package_micropkg(
metadata: ProjectMetadata, module_path, env, alias, destination, all_flag
):
metadata: ProjectMetadata,
module_path,
env,
alias,
destination,
all_flag,
**kwargs,
): # pylint: disable=unused-argument
"""Package up a modular pipeline or micro-package as a Python source distribution."""
if not module_path and not all_flag:
click.secho(
Expand Down

0 comments on commit a2404bc

Please sign in to comment.