Callback to print banner before commands.
(ctx: typer.Context)
| 124 | |
| 125 | |
| 126 | def banner_callback(ctx: typer.Context): |
| 127 | """Callback to print banner before commands.""" |
| 128 | # Only print banner for main help or when no command specified |
| 129 | if ctx.invoked_subcommand is None: |
| 130 | print_banner() |
| 131 | |
| 132 | |
| 133 | app = typer.Typer( |
nothing calls this directly
no test coverage detected