From 7aca7d52897c995437867daa2568fe54ee767d61 Mon Sep 17 00:00:00 2001 From: didericis Date: Wed, 8 Jul 2026 12:38:06 -0400 Subject: [PATCH] feat(start): show backend name in preflight output Co-Authored-By: Claude Sonnet 4.6 --- bot_bottle/cli/start.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bot_bottle/cli/start.py b/bot_bottle/cli/start.py index 373b851..a71338e 100644 --- a/bot_bottle/cli/start.py +++ b/bot_bottle/cli/start.py @@ -242,7 +242,7 @@ def prepare_with_preflight( spec: BottleSpec, *, stage_dir: Path, - render_preflight: Callable[[DockerBottlePlan], None], + render_preflight: Callable[[DockerBottlePlan, str], None], prompt_yes: Callable[[], bool], dry_run: bool = False, backend_name: str | None = None, @@ -263,7 +263,7 @@ def prepare_with_preflight( plan = backend.prepare(spec, stage_dir=stage_dir) identity = _identity_from_plan(plan) - render_preflight(plan) + render_preflight(plan, backend.name) if dry_run: info("dry-run requested; not starting container.") @@ -390,8 +390,9 @@ def _text_prompt_yes() -> bool: def _text_render_preflight(): - def _render(plan: DockerBottlePlan) -> None: + def _render(plan: DockerBottlePlan, backend_name: str) -> None: print(file=sys.stderr) + print(f"backend: {backend_name}", file=sys.stderr) print(_manifest_to_yaml(plan.manifest), file=sys.stderr) return _render