[
https://issues.jboss.org/browse/WFCORE-1682?page=com.atlassian.jira.plugi...
]
Petr Kremensky commented on WFCORE-1682:
----------------------------------------
Tab completion for {{if}} command is affected as well
{noformat}
[domain@10.16.179.18:9990 /] if --<TAB>
--condition --help
{noformat}
however {{--condition}} is a not valid argument for the command
{noformat}
ARGUMENTS
--help - prints this description.
command_line - CLI command or an operation whose response
should be evaluated to determine which
block of the if-else should be executed next;
condition_expression - an expression that evaluates the response
and based on which the next block of the
if-else control flow to be executed is chosen.
{noformat}
Missleading tab completion for edit-batch-line command
------------------------------------------------------
Key: WFCORE-1682
URL:
https://issues.jboss.org/browse/WFCORE-1682
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Petr Kremensky
Assignee: Alexey Loubyansky
Tab completion for edit-batch-list command suggest to use --line-number as a command
option, but that is not how the command works.
*command usage*
{noformat}
[standalone@localhost:9990 /] batch
[standalone@localhost:9990 / #] :read-resource
[standalone@localhost:9990 / #] list-batch
#1 /:read-resource
[standalone@localhost:9990 / #] edit-batch-line 1 :read-attribute(name=launch-type)
#1 :read-attribute(name=launch-type)
[standalone@localhost:9990 / #] list-batch
#1 :read-attribute(name=launch-type)
{noformat}
*actual*
{noformat}
[standalone@localhost:9990 / #] edit-batch-line <TAB>
[standalone@localhost:9990 / #] edit-batch-line --<TAB>
--help --line-number
[standalone@localhost:9990 / #] edit-batch-line --line-number=1
:read-attribute(name=launch-type)
Failed to parse line number '--line-number=1': For input string:
"--line-number=1"
{noformat}
{{--line-number}} shouldn't be offered by tab completion for the command.
Misleading tab completion ends up with syntax error.
*expected*
{noformat}
[standalone@localhost:9990 / #] edit-batch-line <TAB>
--help
{noformat}
The issue is a regression against EAP 7.0.0 release.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)