public interface SuggestionProvider
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<Suggestion> |
provideSuggestions(java.util.List<java.lang.String> args,
CommandParseResult parseResult)
Given args and the result of parsing them, provide suggestions for the next argument.
|
com.google.common.collect.ImmutableSet<Suggestion> provideSuggestions(java.util.List<java.lang.String> args, CommandParseResult parseResult)
Assume that the argument that needs completion is the last one, unless
parseResult
's bound argument count is equal to args.size()
,
in which case provide options for a new, empty, argument. The
replaced argument should be set to
args.size()
in this case, to signify it replaces outside of the list.
args
- the original arguments passedparseResult
- the result of parsing the arguments