INNER CODE UNIT · Python
_print_starter_list
tomascupr/sandstorm · src/sandstorm/cli.py:86
def _print_starter_list() -> None:
"""Print the bundled starter catalog."""
click.echo("Available starters:\n")
for starter in list_starters():
click.echo(f" {starter.slug:18s} {starter.description}")
if starter.aliases:
click.echo(f" {'aliases:':18s} {', '.join(starter.aliases)}")
click.echo()
def _prompt_for_starter() -> StarterDefinition:
"""Interactively choose a starter from the catalog."""
_print_starter_list()
starter_name = click.prompt(
"Starter",
type=click.Choice([starter.slug for starter in list_starters()], case_sensitive=False),
default="general-assistant",
show_choices=False,