MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / _print_init_next_steps

Function _print_init_next_steps

src/cocoindex_code/cli.py:472–486  ·  view source on GitHub ↗

Prominent recovery block shown after a failed init model check.

(settings_path: Path)

Source from the content-addressed store, hash-verified

470
471
472def _print_init_next_steps(settings_path: Path) -> None:
473 """Prominent recovery block shown after a failed init model check."""
474 import click as _click
475
476 display_path = format_path_for_display(settings_path)
477 _typer.echo(err=True)
478 _typer.echo(_click.style(" Next steps", bold=True), err=True)
479 _typer.echo(_click.style(f" {'─' * 38}", fg="bright_black"), err=True)
480 _typer.echo(
481 f" 1. Edit {_click.style(display_path, fg='cyan', bold=True)}\n"
482 " to change the model or add API keys under `envs:`.",
483 err=True,
484 )
485 _typer.echo(" 2. Run `ccc doctor` to verify.", err=True)
486 _typer.echo() # trailing blank before whatever init prints next
487
488
489def _setup_user_settings_interactive(litellm_model_flag: str | None) -> None:

Callers 1

Calls 1

format_path_for_displayFunction · 0.85

Tested by

no test coverage detected