Description
Non-batch commands are logged with method ctx.printLine(result.toString());
https://github.com/wildfly/wildfly-core/blob/master/cli/src/main/java/org/jboss/as/cli/handlers/OperationRequestHandler.java#L86
Log also batch commands, e.g.
https://github.com/wildfly/wildfly-core/blob/master/cli/src/main/java/org/jboss/as/cli/handlers/ifelse/IfElseControlFlow.java#L165
Or use a mechanism to store the last result. I use your API and it would be usefull for me.