feat(cli): add --verbose to export quiet logging#933
Conversation
Wire export to configure_cli_logging so progress bars stay clean by default, matching init/update/reindex. Part of repowise-dev#930. Signed-off-by: Solaris-star <820622658@qq.com>
|
✅ Health: 7.5 (unchanged) 📋 At a glance 🗺️ Change map flowchart LR
subgraph PR ["Changed in this PR (1 with dependents)"]
f_packages_cli_src_repowise_cli_commands_export_cmd_py[".../commands/export_cmd.py 🔥"]:::changed
end
f_packages_cli_src_repowise_cli_main_py[".../cli/main.py"]
f_packages_cli_src_repowise_cli_commands_export_cmd_py --> f_packages_cli_src_repowise_cli_main_py
classDef changed fill:#dbeafe,stroke:#1d4ed8,color:#1e3a5f
classDef warn fill:#fef3c7,stroke:#b45309,color:#78350f
classDef guard fill:#dcfce7,stroke:#15803d,color:#14532d
Solid arrows: code that imports the changed files (1 direct dependent, from the last indexed snapshot). Dashed: history/tests. 🔎 More signals (1)🔥 Hotspot touched (1)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-24 01:08 UTC |
RaghavChamadiya
left a comment
There was a problem hiding this comment.
Keeping this one since you claimed the slice first. Same three items as #932: route the test through CliRunner rather than .callback(), add the flag to the repowise export options table in docs/CLI_REFERENCE.md (around line 657), and run ruff format . (it reformats both files here).
@Narasimha2211 opened #934 for the same command with a test that already does the CliRunner version and covers the quiet default. Please lift that test shape and credit them in the commit body.
Route the verbose-flag test through CliRunner().invoke() instead of .callback() so it actually exercises the Click decorator (repowise-dev#933). Add --verbose/-v to the export options table in CLI_REFERENCE.md. Co-authored-by: Narasimha2211 (test shape from repowise-dev#934)
|
Same three items addressed:
Lifted the test shape from #934 (credited in commit body). Please re-review when convenient. |
Summary
--verbose/-vtorepowise export, wired toconfigure_cli_loggingso progress bars stay clean by default (same pattern asinit/update/reindex).configure_cli_loggingbefore pipeline work.Part of #930 (export slice only).
How tested
.venv/bin/python -m pytest tests/unit/cli/test_export_cmd.py -q # 1 passed