]
Erich Duda updated WFCORE-3489:
-------------------------------
Affects: User Experience
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@embedded /] for var in :read-resource
[standalone@embedded /] try
[standalone@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}}