[forge-issues] [JBoss JIRA] (FORGE-2291) Saying No to display all NNN possibilities in CLI completer exits instead of allowing to continue
George Gastaldi (JIRA)
issues at jboss.org
Mon Mar 23 09:02:19 EDT 2015
[ https://issues.jboss.org/browse/FORGE-2291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-2291:
-----------------------------------
Description:
I have some Camel forge commands, and we have completers for some options.
One of the options is to provide a Camel component name. And as we have a lot of then, eg 180 then the completer asks if you want to show them all or not. If you type N then the CLI exits, and you have to redo the command again. I would expected N to go back so I can continue typing on the current command as if I didnt press TAB to trigger the completer.
See below for example
{code}
[foo]$ camel-add-endpoint-xml
--componentNameFilter --componentName --instanceName --xml
[foo]$ camel-add-endpoint-xml --componentName
Display all 180 possibilities? (y or n)
[foo]$
{code}
If I hit ESC instead I would expect it to exit which it does. So typing N should take me back, so I can continue typing that command as-is.
was:
I have some Camel forge commands, and we have completers for some options.
One of the options is to provide a Camel component name. And as we have a lot of then, eg 180 then the completer asks if you want to show them all or not. If you type N then the CLI exists, and you have to redo the command again. I would expected N to go back so I can continue typing on the current command as if I didnt press TAB to trigger the completer.
See below for example
{code}
[foo]$ camel-add-endpoint-xml
--componentNameFilter --componentName --instanceName --xml
[foo]$ camel-add-endpoint-xml --componentName
Display all 180 possibilities? (y or n)
[foo]$
{code}
If I hit ESC instead I would expect it to exit which it does. So typing N should take me back, so I can continue typing that command as-is.
> Saying No to display all NNN possibilities in CLI completer exits instead of allowing to continue
> -------------------------------------------------------------------------------------------------
>
> Key: FORGE-2291
> URL: https://issues.jboss.org/browse/FORGE-2291
> Project: Forge
> Issue Type: Bug
> Components: UI - Shell
> Affects Versions: 2.15.2.Final
> Reporter: Claus Ibsen
> Priority: Minor
>
> I have some Camel forge commands, and we have completers for some options.
> One of the options is to provide a Camel component name. And as we have a lot of then, eg 180 then the completer asks if you want to show them all or not. If you type N then the CLI exits, and you have to redo the command again. I would expected N to go back so I can continue typing on the current command as if I didnt press TAB to trigger the completer.
> See below for example
> {code}
> [foo]$ camel-add-endpoint-xml
> --componentNameFilter --componentName --instanceName --xml
> [foo]$ camel-add-endpoint-xml --componentName
> Display all 180 possibilities? (y or n)
> [foo]$
> {code}
> If I hit ESC instead I would expect it to exit which it does. So typing N should take me back, so I can continue typing that command as-is.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the forge-issues
mailing list