MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _main_callback

Function _main_callback

paperflow/cli.py:72–81  ·  view source on GitHub ↗
(
    ctx: typer.Context,
    version: bool = typer.Option(False, "--version", "-V", help="Show version and exit."),
)

Source from the content-addressed store, hash-verified

70
71@app.callback()
72def _main_callback(
73 ctx: typer.Context,
74 version: bool = typer.Option(False, "--version", "-V", help="Show version and exit."),
75) -> None:
76 if version:
77 typer.echo(f"paperflow {__version__}")
78 raise typer.Exit()
79 if ctx.invoked_subcommand is None:
80 typer.echo(ctx.get_help())
81 raise typer.Exit()
82
83
84@app.command()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected