Claus Ibsen created FORGE-2290:
----------------------------------
Summary: Using an UICompleter does not work in interactive mode in the CLI
Key: FORGE-2290
URL:
https://issues.jboss.org/browse/FORGE-2290
Project: Forge
Issue Type: Enhancement
Components: UI - Shell
Affects Versions: 2.15.2.Final
Reporter: Claus Ibsen
I have a UIInput where the end user should enter a class name for a Camel route builder
class.
So I have a completer that implements the logic to find all route builders in the java
source
{code}
routeBuilder.setCompleter(new RouteBuilderCompleter(facet));
{code}
And that only works from cli in non interactive mode, eg
{code}
[foo]$ camel-new-endpoint-routebuilder --componentName smtp --instanceName mail
--routeBuilder com.foo.
com.foo.MyRoute com.foo.YourRoute
{code}
When pressing TAB it shows the 2 route builder classes I have.
But in interactive mode the TAB does not work
{code}
Press <ENTER> to confirm, or <CTRL>+C to cancel.
? componentName (Name of component type to add): [0-180] 146
? routeBuilder (The RouteBuilder class to use): co
{code}
I do not get any suggestions when pressing TAB.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)