Class CommandCompleter

java.lang.Object
org.springframework.shell.jline.CommandCompleter
All Implemented Interfaces:
org.jline.reader.Completer

public class CommandCompleter extends Object implements org.jline.reader.Completer
A JLine Completer that completes command names from a CommandRegistry.
Since:
4.0.0
Author:
Mahmoud Ben Hassine
  • Constructor Details

    • CommandCompleter

      public CommandCompleter(CommandRegistry commandRegistry)
      Create a new CommandCompleter instance.
      Parameters:
      commandRegistry - the command registry
  • Method Details

    • complete

      public void complete(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine line, List<org.jline.reader.Candidate> candidates)
      Specified by:
      complete in interface org.jline.reader.Completer