AddJQFlags gives --jq to every runnable command under root that prints JSON.
func AddJQFlags(root *cobra.Command)AddJQFlags gives --jq to every runnable command under root that prints JSON and does not define the flag itself. Commands that hand their arguments to another parser (DisableFlagParsing) document their own.
| Name | Type | Description |
|---|---|---|
root* | *cobra.Command |