Skip to main content

Module interactive

Module interactive 

Source
Expand description

Interactive deploy target / mode / env resolution.

Makes xbp deploy (and xbp deploy --plan) usable without memorizing service names — pick from services[], deploy.groups, or all.

Also peels reserved positional mode words (plan, run, verify, …) so xbp deploy plan is never treated as target=plan.

Structs§

DeployInvocationOptions
CLI flag seeds for interactive deploy resolution (TTY can override).
PeeledDeployArgs
Result of peeling a reserved mode word from the positional target.
ResolvedDeployInvocation

Constants§

DEPLOY_MODE_POSITIONALS
Mode words accepted as a bare positional (instead of --plan / --run / …).

Functions§

apply_cli_service_filters
Apply CLI --only / --exclude filters.
looks_like_local_kube_context
True when the active/requested kube context is a local cluster that shares Docker.
maybe_confirm_multi_service_apply
Confirm apply for multi-service run when interactive.
maybe_edit_plan_services
After a multi-service plan is built, optionally let the operator deselect services.
peel_deploy_mode_positional
Interpret plan/run/… as modes when used as the positional TARGET.
resolve_deploy_invocation
Resolve missing target / mode / env / OCI options via TTY prompts when possible.