mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
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
This commit is contained in:
parent
00692ef667
commit
f70ea85f9d
3 changed files with 4 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue