From fd77a392fcc711f740396fcbfbb9453655f40dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Bou=C5=A1ka?= Date: Thu, 7 Nov 2024 16:16:59 +0100 Subject: [PATCH] Capture limit command output --- src/muc/muc/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/muc/muc/cli.py b/src/muc/muc/cli.py index 83be70c..2fca2eb 100644 --- a/src/muc/muc/cli.py +++ b/src/muc/muc/cli.py @@ -42,8 +42,10 @@ def limit(source_directory: Path, output: Path) -> None: path_output = Path(output).resolve() path_output.mkdir(exist_ok=True) cfg.set_configuration_item("limit_path_output", path_output) - cmd = CommandLimit(cfg) - cmd.execute() + + with logging_to_console(): + cmd = CommandLimit(cfg) + cmd.execute() @cli.command("tidy", help="Tidy directory")