Description
Hi! :)
Check out the documentation for reading the Taskfile from stdin. There is one example that simply does not work:
task -t - <(cat Taskfile.yaml)
I think what you actually mean is one of these:
# input redirection
task -t - < Taskfile.yaml
# process substitution
task -t <(cat Taskfile.yaml)
If you're not familiar with Bash process substitution (I'm unsure if a POSIX shell even supports that), run echo -t <(cat Taskfile.yaml), which will show you what the shell resolves this to. On my system, it gave me task -t /dev/fd/63, with /dev/fd/63 being the a name by which stdout of the cat Taskfile.yaml process can be accessed.
BTW: I think the examples implicitly assume Bash or a POSIX shell, which could be written in a more explicit way. That would be a major overhaul though.
Cheers!
Uli
Version
n/a
Operating system
Ubuntu 24.04
Experiments Enabled
No response
Example Taskfile
Description
Hi! :)
Check out the documentation for reading the Taskfile from stdin. There is one example that simply does not work:
task -t - <(cat Taskfile.yaml)I think what you actually mean is one of these:
If you're not familiar with Bash process substitution (I'm unsure if a POSIX shell even supports that), run
echo -t <(cat Taskfile.yaml), which will show you what the shell resolves this to. On my system, it gave metask -t /dev/fd/63, with/dev/fd/63being the a name by which stdout of thecat Taskfile.yamlprocess can be accessed.BTW: I think the examples implicitly assume Bash or a POSIX shell, which could be written in a more explicit way. That would be a major overhaul though.
Cheers!
Uli
Version
n/a
Operating system
Ubuntu 24.04
Experiments Enabled
No response
Example Taskfile