Skip to content

feat: add verbose level tracking for -v flag - #703

Merged
max-sixty merged 3 commits into
mainfrom
single-v
Jan 17, 2026
Merged

max-sixty merged 3 commits into
mainfrom
single-v

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Add infrastructure to track -v flag so commands can show extra details
  • Follows existing OnceLock pattern used by set_base_path and set_config_path
  • API: output::is_verbose() and output::verbose_level()

Builds on e13776c which reserved -v for future use (requiring -vv for debug logging).

Test plan

  • All tests pass (859 integration, 428 unit)
  • Lints pass

🤖 Generated with Claude Code

max-sixty and others added 3 commits January 17, 2026 13:45
Change verbosity threshold from -v to -vv for enabling debug logging and
diagnostic file generation. This frees up -v for other purposes.

Behavior change:
- -v: no effect (reserved for future use)
- -vv: debug logging + verbose.log + diagnostic.md (unchanged)

Co-Authored-By: Claude <noreply@anthropic.com>
Add infrastructure to track the -v flag so commands can check verbosity
level and show extra details. Follows existing OnceLock pattern used by
set_base_path and set_config_path.

API:
- output::set_verbose_level(level) - called once from main
- output::verbose_level() -> u8 - get level (0/1/2+)
- output::is_verbose() -> bool - check if -v was passed

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty
max-sixty merged commit 15e8d39 into main Jan 17, 2026
20 of 21 checks passed
@max-sixty
max-sixty deleted the single-v branch January 17, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant