-
Notifications
You must be signed in to change notification settings - Fork 44
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
Output formats #98
Comments
Great idea! |
@tonyfosterdev at least for the There is one caveat though. The yaml has color codes in some places which yq chokes on. To get past that we need another workaround and use kcctl describe connector http3 | sed 's/\x1b\[[0-9;]*m//g' | yq eval -o json Update: https://picocli.info/#_heuristics_for_enabling_ansi (in particular point 7.) looks helpful if we want to get rid of the |
That's an interesting observation, @jornh. Note that the YAML output for describe is mostly incidental though, it was not a conscious decision and we may derive from this being YAML in some cases. |
I am lacking this issue exactly. I've tried with the workaround using yq but it's not working for me. Thanks anyway for the wonderful tool Gunnar! |
It would be cool to enable various format options for output. We could call the current format "human", but json would be cool too.
Kubectl supports this with the -o flag.
The main use case here would be to allow for scripting support in conjunction with tools like jq.
The text was updated successfully, but these errors were encountered: