From f70ea85f9dc90d5f1aa679eb2b75861b14b7cbdf Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Mon, 27 Apr 2026 15:16:41 +0800 Subject: [PATCH] feat(13-logging-foundation): wire verbose through sync/ocr/status commands - commands/sync.py: pass verbose to run_selection_sync and run_index_refresh - commands/ocr.py: pass verbose to run_ocr - commands/status.py: pass verbose to run_status - Pattern: verbose=getattr(args, 'verbose', False) - deep.py and repair.py already had this wiring, no changes needed --- paperforge/commands/ocr.py | 2 +- paperforge/commands/status.py | 2 +- paperforge/commands/sync.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paperforge/commands/ocr.py b/paperforge/commands/ocr.py index 7b9d01c1..98e5bea1 100644 --- a/paperforge/commands/ocr.py +++ b/paperforge/commands/ocr.py @@ -74,7 +74,7 @@ def run(args: argparse.Namespace) -> int: logger.info("Processing specific key: %s", key) run_ocr = _get_run_ocr() - exit_code = run_ocr(vault) + exit_code = run_ocr(vault, verbose=getattr(args, "verbose", False)) # Auto-diagnose after successful run (new unified behavior) if exit_code == 0 and ocr_action is None and not diagnose_only and not key: diff --git a/paperforge/commands/status.py b/paperforge/commands/status.py index 8609107a..08c506dd 100644 --- a/paperforge/commands/status.py +++ b/paperforge/commands/status.py @@ -40,4 +40,4 @@ def run(args: argparse.Namespace) -> int: vault = resolve_vault(cli_vault=getattr(args, "vault", None)) run_status = _get_run_status() - return run_status(vault) + return run_status(vault, verbose=getattr(args, "verbose", False)) diff --git a/paperforge/commands/sync.py b/paperforge/commands/sync.py index 5f72fe96..0e03bba2 100644 --- a/paperforge/commands/sync.py +++ b/paperforge/commands/sync.py @@ -82,13 +82,13 @@ def run(args: argparse.Namespace) -> int: if not index_only: run_selection_sync = _get_run_selection_sync() - code = run_selection_sync(vault) + code = run_selection_sync(vault, verbose=getattr(args, "verbose", False)) if code != 0: exit_code = code if not selection_only: run_index_refresh = _get_run_index_refresh() - code = run_index_refresh(vault) + code = run_index_refresh(vault, verbose=getattr(args, "verbose", False)) if code != 0 and exit_code == 0: exit_code = code