buildenv.completion¶
Classes¶
Class representing a command for shell autocompletion. |
|
Class representing a command for shell autocompletion. |
|
Class representing a command for shell autocompletion. |
Module Contents¶
- class buildenv.completion.CompletionCommand¶
Bases:
abc.ABCClass representing a command for shell autocompletion.
- abstractmethod get_command() str¶
Get the command string for autocompletion, to be added to generated completion script.
- Returns:
Command string for autocompletion
- class buildenv.completion.EvalCompletionCommand(command: str)¶
Bases:
CompletionCommandClass representing a command for shell autocompletion. The provided command is supposed to return a bash script snippet to be evaluated with the “eval” command.
- Parameters:
command – The command to be evaluated
- get_command() str¶
Get the command string for autocompletion, to be added to generated completion script.
- Returns:
Command string for autocompletion
- class buildenv.completion.ArgCompleteCompletionCommand(command: str)¶
Bases:
EvalCompletionCommandClass representing a command for shell autocompletion. The provided command is supposed to be an entry-point using argcomplete
- Parameters:
command – Single command name using argcomplete lib