From 795a681dd9eeb20c09947a63da0049f099002c97 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 0fe3e55..ca73328 100644 --- a/bot_bottle/cli/start.py +++ b/bot_bottle/cli/start.py @@ -123,7 +123,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, @@ -144,7 +144,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.") @@ -271,8 +271,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