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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aloubyansky Oleksiy Lubyanskyy
                Reporter:
                mbasovni Martin Basovnik
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: