We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e7b38 commit a789c40Copy full SHA for a789c40
cmd/aem/cli.go
@@ -302,6 +302,9 @@ func (c *CLI) printOutputMarshaled() {
302
// Due to bug in JMESPath we need to clone response data using JSON serialization.
303
// Ref.: https://github.com/jmespath/go-jmespath/issues/32
304
outputResponse, err := c.outputResponse.Clone()
305
+ if err != nil {
306
+ log.Fatalf("cannot clone CLI output data: %s", err)
307
+ }
308
outputQueried, err := jmespath.Search(c.outputQuery, outputResponse)
309
if err != nil {
310
log.Fatalf("cannot perform query '%s' on CLI output data: %s", c.outputQuery, err)
0 commit comments