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

allow to specify the output format #31

Open
oemergenc opened this issue Nov 24, 2022 · 0 comments
Open

allow to specify the output format #31

oemergenc opened this issue Nov 24, 2022 · 0 comments

Comments

@oemergenc
Copy link

oemergenc commented Nov 24, 2022

it would be nice, when it were possible to specify an output format. kubectl allows to output in json format. That way it is possible to pipe the output to other tools and only extract the exact field that is wanted, for example:

kubectl get pod my-pod -o jsonpath='{.data}' | jq -r '.["myfield"]'

Something like this would be nice:

describepod -o json | jq -r '.["myfield"]'

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

1 participant