public class PicocliJLineCompleter
extends java.lang.Object
implements org.jline.reader.Completer
Completer interface that generates completion
candidates for the specified command line based on the CommandLine.Model.CommandSpec that
this PicocliJLineCompleter was constructed with.| Constructor and Description |
|---|
PicocliJLineCompleter(picocli.CommandLine.Model.CommandSpec spec)
Constructs a new
PicocliJLineCompleter for the given command spec. |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(org.jline.reader.LineReader reader,
org.jline.reader.ParsedLine line,
java.util.List<org.jline.reader.Candidate> candidates)
Populates candidates with a list of possible completions for the command line.
|
public PicocliJLineCompleter(picocli.CommandLine.Model.CommandSpec spec)
PicocliJLineCompleter for the given command spec.spec - the command specification to generate completions for. Must be non-null.public void complete(org.jline.reader.LineReader reader,
org.jline.reader.ParsedLine line,
java.util.List<org.jline.reader.Candidate> candidates)
complete in interface org.jline.reader.Completerreader - The line readerline - The parsed command linecandidates - The List of candidates to populate