-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support array spread in exec #354
Comments
why not do array_join and than spread? |
Yeah Anyway, you can close the issue if you feel a new syntax is unnecessary. EDIT: does not work for empty args unless you add the special case handling in duckscript as well. |
just saw the edit, can you tell me what you tried and what you saw? |
@sagiegurari I tried: [tasks.release]
script = """
files = array_join ${@} " "
exec --fail-on-error tar -cf release.tar must_have.sh %{files}
"""
script_runner = "@duckscript"
I can add if to the script but that requires every such usage to add an if. |
thanks i will check it out |
@dovahcrow this is now fixed for spread binding and being released. |
This is great! |
Feature Description
This is similar to #133 but came from cargo-make and is for array:
When using
cargo-make
, additional parameters are stored in${@}
, like other runners.However, in duckscript,
${@}
is an array, making it impossible to pass toexec
.Describe The Solution You'd Like
Maybe add a new syntax to spread the array?
Code Sample
Or any new syntax makes the above work.
The text was updated successfully, but these errors were encountered: