Skip to content
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

Feature Request: Allow reading vars/json from stdin #42

Open
pinpox opened this issue Mar 6, 2022 · 2 comments
Open

Feature Request: Allow reading vars/json from stdin #42

pinpox opened this issue Mar 6, 2022 · 2 comments

Comments

@pinpox
Copy link

pinpox commented Mar 6, 2022

Hi, if i'm not mistaken it is only possible to read template files from stdin but not json data to be used. I'd like to be able to do something like this, to read json from other commands:

curl https://example.com/something.json | gucci template-file.tmpl
@noqcks
Copy link
Owner

noqcks commented Mar 23, 2022

great idea. I would support any PRs of this nature

@rjshrjndrn
Copy link

I think more streamlined approach will be

curl https://example.com/something.json | gucci template-file.tmpl -f -

Else it'll be confusing whether the piped file is template or variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants