We need to add a --verbose flag (e.g., -v, -vv) to the CLI to control the verbosity of console output. The goal is to allow different levels of verbosity in our Typer commands without scattering if statements throughout the code.
Key Points:
Use the existing Rich and Typer libraries to integrate verbosity levels.
Integrate with logging or message handling for various verbosity levels (INFO, DEBUG, etc.).
Allow multiple verbosity levels via a simple command-line flag like --verbose or -v.
Provide console outputs at different levels of verbosity without repetitive conditionals.
Consider designing a mechanism that respects verbosity settings and enhances debugging efficiency in an interactive way, keeping code clean and maintainable. The exact implementation is up to the contributor to design.
We need to add a
--verbose
flag (e.g.,-v
,-vv
) to the CLI to control the verbosity of console output. The goal is to allow different levels of verbosity in our Typer commands without scatteringif
statements throughout the code.Key Points:
Rich
andTyper
libraries to integrate verbosity levels.--verbose
or-v
.Consider designing a mechanism that respects verbosity settings and enhances debugging efficiency in an interactive way, keeping code clean and maintainable. The exact implementation is up to the contributor to design.