patrickdappollonio / tgen

A template tool with no dependencies that works like Helm templates or Consul templates.
MIT License
15 stars 1 forks source link

Add support for stdin #31

Closed patrickdappollonio closed 1 year ago

patrickdappollonio commented 1 year ago

While working with this, passing a template as a parameter requires you to create a file first. It would be nice to allow passing a stdin string and use that instead. Something like:

echo '{{ env "path" }}' | tgen -x -
patrickdappollonio commented 1 year ago

I completely forgot and this is already supported via the --file parameter, so I'm making it more evident in the help page. Closing.