Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3236

CLI, looping over commands/operations

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 4.0.0.Alpha3
    • None
    • CLI
    • None

    Description

      A support similar to Java iteration could be exposed by CLI. By leveraging the variable and the control flow CLI features, a command can be exposed to iterate collections and execute CLI commands/operations for each item present in the collection.
      Something like:
      for varName in :read-children-names(type=deployment)
      echo Manifest file in $varName
      attachment display --operation=/deployment=$varName:read-content(path=META-INF/MANIFEST.MF)
      done

      Attachments

        Issue Links

          Activity

            People

              jdenise@redhat.com Jean Francois Denise
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: