From 076aa2a43aedfc5649ab942ac14e12c804c404ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Fri, 26 May 2023 18:08:49 +0200 Subject: [PATCH] Make `kedro micropkg package` accept `--verbose` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Luis Cano Rodríguez --- kedro/framework/cli/micropkg.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kedro/framework/cli/micropkg.py b/kedro/framework/cli/micropkg.py index 096d837c17..01844e8116 100644 --- a/kedro/framework/cli/micropkg.py +++ b/kedro/framework/cli/micropkg.py @@ -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`." ) @@ -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(