[Capact CLI] Add support for jsonpath
output
#614
Labels
area/cli
Relates to CLI
area/documentation
Related to all activities around documentation
enhancement
New feature or request
Milestone
Description
Currently, in most of our tutorials/documentations, we require from user to install the
jq
tools For example:this can be simply replaced with:
capact typeinstance get {type-instance-id} -ojsonpath='.[0].latestResourceVersion.spec.value'
After #489 it would be as simple as:
capact typeinstance get {type-instance-id} -ojsonpath='.spec.value'
We can re-use solution implemented in
kubectl
:https://github.com/kubernetes/cli-runtime/blob/e2af539b53266cfd3ee268922d3027f83de1e80a/pkg/printers/jsonpath.go#L139-L145
Reason
Requires installation of external tools for most of the happy path scenarios. This should be simplified and Capact CLI should be the only one which is needed. One 💍 to rule them all 😎 . Same as we did for #328 and #466.
Use cases
Acceptance Criteria
jsonpath
output for all commandsThe text was updated successfully, but these errors were encountered: