diff --git a/cmd/aem/cli.go b/cmd/aem/cli.go index 9693b738..c4ff93e2 100644 --- a/cmd/aem/cli.go +++ b/cmd/aem/cli.go @@ -299,6 +299,9 @@ func (c *CLI) printOutputDataIndented(writer *textio.PrefixWriter, value any, ke } func (c *CLI) printOutputMarshaled() { + if c.outputValue == common.OutputValueNone { + return + } // Due to bug in JMESPath we need to clone response data using JSON serialization. // Ref.: https://github.com/jmespath/go-jmespath/issues/32 outputResponse, err := c.outputResponse.Clone()