-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Read Taskfile from stdin #655
Comments
I also tried with file pipe redirection 😞
I'm interested in this for a remote
|
bump. This is needed. I'm dynamically generating taskfiles, and it would be nice if I didn't have to write it to disk first. |
It would be nice if this worked: task -t <(jsonnet foo.jsonnet) and/or something like this: export TASK_TASKFILE_PREPROCESSOR=jsonnet
export TASK_TASKFILE_NAME=foo.jsonnet
task |
This was pretty low-hanging fruit now that we have the |
Thanks for looking into it. I'm coming into this code cold, but I see here:
The read is done with
task -t <(jsonnet foo.jsonnet)
jsonnet foo.jsonet | task -t /dev/stdin It might be that a 1 line change there at the |
Also, it would be nice to be able to stay do something like
|
@brianbraunstein I think we only really want to add
It is not necessary no. However, there is a surprising amount of internal work required in order to do this in a way that is both backwards compatible and maintains the expected behaviour. This functionality is also required for #1347 to work correctly and as such, I have been working on it over there instead of here. |
I think
when I was digging through the code I remember noticing it's passing around file names and/or directory names rather than just the file descriptor (or IO object wrapping it), so I believe you that there are some challenges caused by this. I could definitely live with the |
Hi, it'd be cool to do something like this:
generate_taskfile.sh | task --taskfile - lorem
The text was updated successfully, but these errors were encountered: