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

add --multi flag to jsonnet-qbec binary #65

Open
gree-gorey opened this issue Aug 9, 2019 · 1 comment
Open

add --multi flag to jsonnet-qbec binary #65

gree-gorey opened this issue Aug 9, 2019 · 1 comment

Comments

@gree-gorey
Copy link

This is a feature proposal.

I used jsonnet to render kube-prometheus manifests. However, native jsonnet lacks the parseYaml function that I really need. So I started using jsonnet-qbec tool which is a great tool, but now I miss the --multi argument that native jsonnet binary has: it allows you to "Write multiple files to the directory, list files on stdout". It is very helpful for using with pipes when you have really large json output, smth like:

jsonnet -J vendor --multi manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
@gree-gorey gree-gorey changed the title add --multi <dir> flag to jsonnet-qbec binary add --multi <dir> flag to jsonnet-qbec binary Aug 9, 2019
@gree-gorey gree-gorey changed the title add --multi <dir> flag to jsonnet-qbec binary add --multi flag to jsonnet-qbec binary Aug 9, 2019
@gotwarlost
Copy link
Contributor

gotwarlost commented Aug 9, 2019 via email

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

2 participants