[jboss-jira] [JBoss JIRA] (WFCORE-3489) CLI completion does not work correctly for control flow commands inside of for loop
Jean-Francois Denise (JIRA)
issues at jboss.org
Thu Jan 4 05:06:00 EST 2018
[ https://issues.jboss.org/browse/WFCORE-3489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509217#comment-13509217 ]
Jean-Francois Denise commented on WFCORE-3489:
----------------------------------------------
What you are observing is not specific to the for loop, try/if are already showing the same behaviour.
> CLI completion does not work correctly for control flow commands inside of for loop
> -----------------------------------------------------------------------------------
>
> Key: WFCORE-3489
> URL: https://issues.jboss.org/browse/WFCORE-3489
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 4.0.0.Alpha5
> Reporter: Erich Duda
> Assignee: Jean-Francois Denise
>
> The issue appears when you write following commands into the CLI.
> {code}
> [standalone at embedded /] for var in :read-resource
> [standalone at embedded /] try
> [standalone at embedded /] <TAB>
> : cd connect deployment-overlay help module read-attribute set undeploy
> alias clear connection-info done history patch read-operation stop-embedded-server unset
> attachment command deploy echo if pwd reload try version
> batch command-timeout deployment-info echo-dmr ls quit run-batch unalias
> {code}
> As you can see the completion helper offers a {{try}} command although it should offer {{catch}} command.
> This issue is caused by design limitation of CLI. When you type some commands inside of for loop block, they are just added into internal list and they are not evaluated until {{done}} command is called.
> The same applies also for other control flow commands such as {{if-else-endif}}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list