Skip to content

Support expressions in confirm attribute#3238

Merged
casey merged 18 commits intocasey:masterfrom
begoon:expression-in-confirm
Apr 3, 2026
Merged

Support expressions in confirm attribute#3238
casey merged 18 commits intocasey:masterfrom
begoon:expression-in-confirm

Conversation

@begoon
Copy link
Copy Markdown
Contributor

@begoon begoon commented Apr 3, 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 Apr 3, 2026

@casey

@casey casey enabled auto-merge (squash) April 3, 2026 17:45
@casey casey merged commit c0a1039 into casey:master Apr 3, 2026
6 checks passed
@casey
Copy link
Copy Markdown
Owner

casey commented Apr 3, 2026

Merged, thank's for the PR, and sorry the hassle closing it!

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.

2 participants