org.codehaus.groovy.grails.cli.interactive
Class CandidateListCompletionHandler

java.lang.Object
  extended by 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

Constructor Summary
CandidateListCompletionHandler()
           
 
Method Summary
 boolean complete(jline.ConsoleReader reader, java.util.List candidates, int pos)
           
 void setAlwaysIncludeNewline(boolean eagerNewlines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CandidateListCompletionHandler

public CandidateListCompletionHandler()
Method Detail

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