MCPcopy
hub / github.com/github/spec-kit / callback

Function callback

src/specify_cli/__init__.py:103–111  ·  view source on GitHub ↗

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."),
)

Source from the content-addressed store, hash-verified

101
102@app.callback()
103def 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
113def _refresh_shared_templates(
114 project_path: Path,

Callers

nothing calls this directly

Calls 2

show_bannerFunction · 0.85
printMethod · 0.80

Tested by

no test coverage detected