Annotation Interface Suggest
Annotation to provide autocomplete suggestions for command arguments.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Names of arguments whose parsed values should be available when generating suggestions.booleanWhether permission is required to display suggestions.
-
Element Details
-
value
String[] valueSources of suggestions for autocomplete. Can contain method names, special arguments, static lists, or combined sources.- Returns:
- the suggestion sources
-
permission
boolean permissionWhether permission is required to display suggestions. If true, permission will be checked for each suggestion.- Returns:
- true if permission is required for suggestions
- Default:
false
-
contextArgs
String[] contextArgsNames of arguments whose parsed values should be available when generating suggestions. These arguments must appear before the current argument in the command signature.- Returns:
- array of argument names
- Default:
{}
-