MCPcopy
hub / github.com/github/spec-kit / _print_cli_warning

Function _print_cli_warning

src/specify_cli/__init__.py:344–356  ·  view source on GitHub ↗

Print a warning that names the failed CLI phase and target.

(
    phase: str,
    target_kind: str,
    target: str | None,
    exc: BaseException,
    *,
    continuing: str | None = None,
)

Source from the content-addressed store, hash-verified

342
343
344def _print_cli_warning(
345 phase: str,
346 target_kind: str,
347 target: str | None,
348 exc: BaseException,
349 *,
350 continuing: str | None = None,
351) -> None:
352 """Print a warning that names the failed CLI phase and target."""
353 label = _cli_phase_label(phase, target_kind, target)
354 console.print(f"[yellow]Warning:[/yellow] Failed to {label}: {_cli_error_detail(exc)}")
355 if continuing:
356 console.print(f"[dim]{continuing}[/dim]")
357
358
359# Constants kept for backward compatibility with presets and extensions.

Callers 8

_get_skills_dirMethod · 0.85
initFunction · 0.85
integration_installFunction · 0.85
integration_switchFunction · 0.85
_ensure_usableMethod · 0.85
_get_skills_dirMethod · 0.85

Calls 3

printMethod · 0.80
_cli_phase_labelFunction · 0.70
_cli_error_detailFunction · 0.70

Tested by

no test coverage detected