kube-fzf icon indicating copy to clipboard operation
kube-fzf copied to clipboard

allow to specify the output format

Open oemergenc opened this issue 1 year ago • 0 comments

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"]'

oemergenc avatar Nov 24 '22 11:11 oemergenc