Package org.springframework.shell.jline
Class CommandCompleter
java.lang.Object
org.springframework.shell.jline.CommandCompleter
- All Implemented Interfaces:
org.jline.reader.Completer
A JLine
Completer that completes command names from a CommandRegistry.- Since:
- 4.0.0
- Author:
- Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionCommandCompleter(CommandRegistry commandRegistry) Create a newCommandCompleterinstance. -
Method Summary
-
Constructor Details
-
CommandCompleter
Create a newCommandCompleterinstance.- 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:
completein interfaceorg.jline.reader.Completer
-