-
Notifications
You must be signed in to change notification settings - Fork 61
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 arguments to bios process #158
Comments
This ought to work in windows as well, right? |
I think you could call |
Proposed yaml: cradle:
bios:
shell: 'bash -c "ob internal export-some-stuff > \"$HIE_BIOS_OUTPUT\""' Maybe we can even ditch the OS dependant part and use just: cradle:
bios:
shell: 'ob internal export-some-stuff > \"$HIE_BIOS_OUTPUT\"' |
Sounds sensible to me. |
Not sure how can work that for windows and linux, using the same cradle config. One solution could be to have two files What about cradle:
bios:
posix:
shell: 'bash -c "ob internal export-some-stuff > \"$HIE_BIOS_OUTPUT\""'
windows:
shell: 'cmd /c "ob internal export-some-stuff > "%HIE_BIOS_OUTPUT%"" or cradle:
bios:
posix:
program: "./hadrian/hie-bios"
windows:
program: ".\\hadrian\\hie-bios.cmd"
We will not let the use of other shells like |
If the user choose to, with
I kind of dislike the idea. BTW, I forgot, the program receives a filepath to load. The command should be able to receive that as well. How should the |
Mmm so |
Not sure how that works, but arent we doing something comparable in HIE? |
the shell executes |
Regarding
I have two ideas: cradle:
bios:
shell: 'bash -c \"produceFlags $HIE_ARG\" > \"$HIE_BIOS_OUTPUT\""' and replace the string "$HIE_ARG" with the filepath name or we turn "$HIE_ARG" into an environment variable that you can use like in the example above or read in the script. Pro for the first approach: Platform independent Pro for the second approach: Feels like it fits into the existing env variable approach |
What's wrong with |
This looks good! Does the part
I agree with that. |
Yes, it captures any argument to Alternatively, one can use |
My bios script is just
It would be nicer if I could just inline this into
hie.yaml
directly with something likeThe text was updated successfully, but these errors were encountered: