INNER CODE UNIT · Python
cli
stacklok/codegate · src/codegate/cli.py:105
def cli() -> None:
"""CodeGate - A configurable service gateway."""
pass
@cli.command()
@click.option(
"--prompts",
type=click.Path(exists=True, dir_okay=False, path_type=Path),
required=False,
help="Path to YAML prompts file (optional, shows default prompts if not provided)",
)
def show_prompts(prompts: Optional[Path]) -> None:
"""Display prompts from the specified file or default if no file specified."""
try:
cfg = Config.load(prompts_path=prompts)
click.echo("Loaded prompts:")
click.echo("-" * 40)