How to use array env variables #734
-
I wanted to use an array variable as a "seed" for my args: [env]
BASIC = ["hi", "ho"]
[task.some]
args = ["something", "${BASIC}"] This will expand all of basic into a single token. I kow |
Beta Was this translation helpful? Give feedback.
Answered by
sagiegurari
Oct 25, 2022
Replies: 1 comment
-
BASIC = ["hi", "ho"] is converted to "hi;no" so using it as is, will result in that. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ModProg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BASIC = ["hi", "ho"] is converted to "hi;no" so using it as is, will result in that.
there isn't really a thing called env value as an array in the OS so its a masking done by cargo-make.
however, cargo-make can't later on decide if its an array or a string.
so, thats why i wrote split function in the first place.