Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2290

Using an UICompleter does not work in interactive mode in the CLI

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • 3.x Future
    • 2.15.2.Final
    • UI - Shell
    • None

    Description

      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

      routeBuilder.setCompleter(new RouteBuilderCompleter(facet));
      

      And that only works from cli in non interactive mode, eg

      [foo]$ camel-new-endpoint-routebuilder --componentName smtp --instanceName mail --routeBuilder com.foo.
      com.foo.MyRoute  com.foo.YourRoute
      

      When pressing TAB it shows the 2 route builder classes I have.

      But in interactive mode the TAB does not work

      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
      

      I do not get any suggestions when pressing TAB.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: