Class AliasCompletion
java.lang.Object
org.aesh.readline.alias.AliasCompletion
- All Implemented Interfaces:
Completion
Completion provider for alias and unalias commands.
- Author:
- Ståle W. Pedersen
-
Constructor Summary
ConstructorsConstructorDescriptionAliasCompletion(AliasManager manager) Creates a new AliasCompletion with the specified alias manager.AliasCompletion(AliasManager manager, boolean includeAliasInCompletion) Creates a new AliasCompletion with the specified alias manager and completion behavior. -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(CompleteOperation completeOperation) Provides completion candidates for alias-related commands.
-
Constructor Details
-
AliasCompletion
Creates a new AliasCompletion with the specified alias manager. By default, alias and unalias commands are included in completion suggestions.- Parameters:
manager- the alias manager used to retrieve alias names for completion
-
AliasCompletion
Creates a new AliasCompletion with the specified alias manager and completion behavior.- Parameters:
manager- the alias manager used to retrieve alias names for completionincludeAliasInCompletion- if true, include alias and unalias commands in completion; if false, only provide alias name completions
-
-
Method Details
-
complete
Provides completion candidates for alias-related commands. This method handles completion for:- Alias names matching the current input buffer
- The 'alias' and 'unalias' commands (if enabled)
- Arguments to 'alias' and 'unalias' commands
- The '--help' option for alias commands
- Specified by:
completein interfaceCompletion- Parameters:
completeOperation- the completion operation containing the current input and to which completion candidates will be added
-