org.codehaus.groovy.grails.cli.interactive
Class CandidateListCompletionHandler
java.lang.Object
org.codehaus.groovy.grails.cli.interactive.CandidateListCompletionHandler
- All Implemented Interfaces:
- jline.CompletionHandler
public class CandidateListCompletionHandler
- extends java.lang.Object
- implements jline.CompletionHandler
Fixes issues with the default CandidateListCompletionHandler such as clearing out the whole buffer when
a completion matches a list of candidates
- Since:
- 2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CandidateListCompletionHandler
public CandidateListCompletionHandler()
setAlwaysIncludeNewline
public void setAlwaysIncludeNewline(boolean eagerNewlines)
complete
public boolean complete(jline.ConsoleReader reader,
java.util.List candidates,
int pos)
throws java.io.IOException
- Specified by:
complete in interface jline.CompletionHandler
- Throws:
java.io.IOException