org.springframework.boot.cli.command.shell

Class CommandCompleter

  • java.lang.Object
    • jline.console.completer.StringsCompleter
      • org.springframework.boot.cli.command.shell.CommandCompleter
  • All Implemented Interfaces:
    jline.console.completer.Completer


    public class CommandCompleter
    extends jline.console.completer.StringsCompleter
    JLine Completer for Spring Boot Commands.
    Author:
    Jon Brisbin, Phillip Webb
    • Constructor Detail

      • CommandCompleter

        public CommandCompleter(jline.console.ConsoleReader consoleReader,
                                jline.console.completer.ArgumentCompleter.ArgumentDelimiter argumentDelimiter,
                                Iterable<Command> commands)
    • Method Detail

      • complete

        public int complete(String buffer,
                            int cursor,
                            List<CharSequence> candidates)
        Specified by:
        complete in interface jline.console.completer.Completer
        Overrides:
        complete in class jline.console.completer.StringsCompleter