Expand description
Suggestion helpers shared by command arguments
Structsยง
- Fixed
Suggestion ๐Provider - An implementation of
SuggestionProviderthat suggests a constant array of suggestions.
Constantsยง
- MATCH_
SPLITTER ๐ - Characters separating the segments
matches_substringsearches
Functionsยง
- identifier_
matches ๐ - Matches
patternagainst a whole identifier or, when it carries no namespace, against its namespace and its path separately. - matches_
substring ๐ - Returns whether
inputstarts withpatternat the beginning of the input or of any segment separated by aMATCH_SPLITTERcharacter. - matches_
substring_ ๐ignore_ case matches_substringon lowercase inputs, as vanillaโsSharedSuggestionProvider.suggestdoes before filtering.- suggest_
list ๐ - Suggests every value whose name matches the remaining input, keeping the valuesโ own casing.
- suggest_
resources ๐ - Suggests the identifiers matching the remaining input.