Skip to content

Support expressions in confirm attribute#3201

Open
begoon wants to merge 3 commits intocasey:masterfrom
begoon:master
Open

Support expressions in confirm attribute#3201
begoon wants to merge 3 commits intocasey:masterfrom
begoon:master

Conversation

@begoon
Copy link
Copy Markdown
Contributor

@begoon begoon commented Mar 26, 2026

The confirmation prompt accepts any expression, so you can use variables,
concatenation, and function calls:

target := "production"
[confirm("Deploy to " + target + "?")]
deploy:
  echo 'Deploying...'

Recipe parameters can also be used in confirmation prompts:

[confirm("Deploy to " + env + "?")]
deploy env:
  echo 'Deploying to {{env}}...'

@begoon
Copy link
Copy Markdown
Contributor Author

begoon commented Mar 26, 2026

@casey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant