buildenv.completion

Classes

CompletionCommand

Class representing a command for shell autocompletion.

EvalCompletionCommand

Class representing a command for shell autocompletion.

ArgCompleteCompletionCommand

Class representing a command for shell autocompletion.

Module Contents

class buildenv.completion.CompletionCommand

Bases: abc.ABC

Class 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: CompletionCommand

Class 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: EvalCompletionCommand

Class 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