Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1029

Add completer support on option values

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.5, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      Currently, Karaf console provides completion on the option name.

      As discussed with Ioannis, it could be interesting to add completer support for option values.

      For instance, mycommand --config where the user can specify a configuration PID in the config option, it could be helpful to have completion for the PID.

      The proposal is to use a new annotation for option, for instance:

      @Option
      @Completer(type = ConfigCompleter.class)

        Attachments

          Activity

            People

            • Assignee:
              iocanel Ioannis Canellos
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: