[jboss-jira] [JBoss JIRA] (WFCORE-3381) CLI, looping over commands/operations

Kabir Khan (JIRA) issues at jboss.org
Wed Oct 25 11:34:00 EDT 2017


Kabir Khan created WFCORE-3381:
----------------------------------

             Summary: CLI, looping over commands/operations
                 Key: WFCORE-3381
                 URL: https://issues.jboss.org/browse/WFCORE-3381
             Project: WildFly Core
          Issue Type: Enhancement
          Components: CLI
            Reporter: Jean-Francois Denise
            Assignee: Jean-Francois Denise


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




--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list