Package core
Class TabCompleter
java.lang.Object
core.TabCompleter
Provides tab completion for built-in and external commands.
-
Constructor Summary
ConstructorsConstructorDescriptionTabCompleter(String[] builtins, String pathEnv) Constructs a TabCompleter with the given builtins and PATH environment. -
Method Summary
-
Constructor Details
-
TabCompleter
Constructs a TabCompleter with the given builtins and PATH environment.- Parameters:
builtins- Array of builtin command names.pathEnv- The PATH environment variable.
-
-
Method Details
-
complete
Returns the completed command or argument based on the current input.- Parameters:
currentInput- The current input string.- Returns:
- The completed input string.
-