choose
The choose step type presents a single-select menu, letting your custom commands and workflows pick one value from a list of options at runtime.
steps:
- name: environment
type: choose
prompt: Select target environment
options:
- dev
- staging
- prod
default: dev
Fields
prompt- Required. Prompt text shown to the user.
options- Required. List of choices.
default- Optional default option.
Interactive steps require a TTY. Reference the selection later with {{ .steps.environment.value }}.