Open msabramo opened 3 years ago
but you can't use --template with data from stdin:
Did you mean to add --template
to that example?
but you can't use --template with data from stdin:
Did you mean to add
--template
to that example?
Yes, thanks.
I agree it would be useful to support this, but I also think it's weird that --template
then can both accept a value and also be used as a boolean flag for stdin. I think we should then make it only a boolean flag and make the template always come as stdin or the first argument.
Currently
--template
and--stdin
are mutually exclusive.In other words, you can use
--template
:and you can use data from stdin:
but you can't use
--template
with data from stdin:I think it would be cool if this were possible. The last example with
echo
is a little silly because it can so easily be changed to the first command, but imagine if the "chalk markup" string were a lot longer and it were in a file, saychocolate-and-peanut-butter.chalk.txt
and then you could do: