Show banner when no subcommand is provided.
(
ctx: typer.Context,
version: bool = typer.Option(False, "--version", "-V", callback=_version_callback, is_eager=True, help="Show version and exit."),
)
| 101 | |
| 102 | @app.callback() |
| 103 | def callback( |
| 104 | ctx: typer.Context, |
| 105 | version: bool = typer.Option(False, "--version", "-V", callback=_version_callback, is_eager=True, help="Show version and exit."), |
| 106 | ): |
| 107 | """Show banner when no subcommand is provided.""" |
| 108 | if ctx.invoked_subcommand is None and "--help" not in sys.argv and "-h" not in sys.argv: |
| 109 | show_banner() |
| 110 | console.print(Align.center("[dim]Run 'specify --help' for usage information[/dim]")) |
| 111 | console.print() |
| 112 | |
| 113 | def _refresh_shared_templates( |
| 114 | project_path: Path, |
nothing calls this directly
no test coverage detected