INNER CODE UNIT · Python

_prompt_for_starter

tomascupr/sandstorm · src/sandstorm/cli.py:96

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,
    )
    return resolve_starter(starter_name)


def _read_project_config_for_listing() -> tuple[dict | None, str | None]:
    """Read sandstorm.json for informational status output."""
    config_path = _get_config_path()
    if not config_path.exists():
        return None, None
    try:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…