Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow expressions as arguments to attributes #2521

Open
casey opened this issue Dec 11, 2024 · 1 comment
Open

Allow expressions as arguments to attributes #2521

casey opened this issue Dec 11, 2024 · 1 comment

Comments

@casey
Copy link
Owner

casey commented Dec 11, 2024

Currently, recipe attributes like [confirm: 'prompt'] only allow string literal arguments. Ideally, these should all be able to take arbitrary expressions, like [confirm: 'are you sure you want to delete ' + path + '?'].

This has been brought up in a number of issues:

#553
#1855
#1996
#2510
#2521

@casey
Copy link
Owner Author

casey commented Dec 11, 2024

Looking at the attributes, I think all of them should be able to take expressions as arguments, with the possible exception of [group], which needs to be evaluated without executing anything.

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

No branches or pull requests

1 participant