Package org.openhab.core.io.console
Interface ConsoleCommandCompleter
- All Known Implementing Classes:
StringsCompleter
@NonNullByDefault
public interface ConsoleCommandCompleter
Implementing this interface allows a
ConsoleCommandExtension
to provide completions for the user as they write commands.- Author:
- Cody Cutrer - Initial contribution
-
Method Summary
-
Method Details
-
complete
boolean complete(String[] args, int cursorArgumentIndex, int cursorPosition, List<String> candidates) Populate possible completion candidates.- Parameters:
args
- An array of all arguments to be passed to the ConsoleCommandExtension's execute methodcursorArgumentIndex
- the argument index the cursor is currently incursorPosition
- the position of the cursor within the argumentcandidates
- a list to fill with possible completion candidates- Returns:
- if a candidate was found
-