Package org.grails.build.interactive
Class CandidateListCompletionHandler
- java.lang.Object
-
- org.grails.build.interactive.CandidateListCompletionHandler
-
- All Implemented Interfaces:
jline.console.completer.CompletionHandler
public class CandidateListCompletionHandler extends java.lang.Object implements jline.console.completer.CompletionHandlerFixes issues with the default CandidateListCompletionHandler such as clearing out the whole buffer when a completion matches a list of candidates- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description CandidateListCompletionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancomplete(jline.console.ConsoleReader reader, java.util.List<java.lang.CharSequence> candidates, int pos)voidsetAlwaysIncludeNewline(boolean eagerNewlines)
-
-
-
Method Detail
-
setAlwaysIncludeNewline
public void setAlwaysIncludeNewline(boolean eagerNewlines)
-
complete
public boolean complete(jline.console.ConsoleReader reader, java.util.List<java.lang.CharSequence> candidates, int pos) throws java.io.IOException- Specified by:
completein interfacejline.console.completer.CompletionHandler- Throws:
java.io.IOException
-
-