Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4440

CLI: Log or store results (ModelNode) in batch commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • CLI

      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.

              olubyans@redhat.com Alexey Loubyansky
              mbasovni Martin Basovnik (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: