Undocumented
Class |
|
Shell completion for Bash. |
Class |
|
Represents a completion value and metadata about the value. The default metadata is ``type`` to indicate special shell handling, and ``help`` if a shell supports showing a help string next to the value. |
Class |
|
Shell completion for Fish. |
Class |
|
Base class for providing shell completion support. A subclass for a given shell will override attributes and methods to implement the completion instructions (``source`` and ``complete``). |
Class |
|
Shell completion for Zsh. |
Function | add |
Register a :class:`ShellComplete` subclass under the given name. The name will be provided by the completion instruction environment variable during completion. |
Function | get |
Look up a registered :class:`ShellComplete` subclass by the name provided by the completion instruction environment variable. If the name isn't registered, returns ``None``. |
Function | shell |
Perform shell completion for the given CLI program. |
Function | _is |
Determine if the given parameter is an argument that can still accept values. |
Function | _is |
Determine if the given parameter is an option that needs a value. |
Function | _resolve |
Produce the context hierarchy starting with the command and traversing the complete arguments. This only follows the commands, it doesn't trigger input prompts or callbacks. |
Function | _resolve |
Find the Click object that will handle the completion of the incomplete value. Return the object and the incomplete value. |
Function | _start |
Check if the value looks like the start of an option. |
Constant | _SOURCE |
Undocumented |
Constant | _SOURCE |
Undocumented |
Constant | _SOURCE |
Undocumented |
Variable | _available |
Undocumented |
Register a :class:`ShellComplete` subclass under the given name. The name will be provided by the completion instruction environment variable during completion. :param cls: The completion class that will handle completion for the shell. :param name: Name to register the class under. Defaults to the class's ``name`` attribute.
Parameters | |
name:t.Optional[ | Undocumented |
Look up a registered :class:`ShellComplete` subclass by the name provided by the completion instruction environment variable. If the name isn't registered, returns ``None``. :param shell: Name the class is registered under.
Parameters | |
shell:str | Undocumented |
Returns | |
t.Optional[ | Undocumented |
Perform shell completion for the given CLI program. :param cli: Command being called. :param ctx_args: Extra arguments to pass to ``cli.make_context``. :param prog_name: Name of the executable in the shell. :param complete_var: Name of the environment variable that holds the completion instruction. :param instruction: Value of ``complete_var`` with the completion instruction and shell, in the form ``instruction_shell``. :return: Status code to exit with.
Parameters | |
cli:BaseCommand | Undocumented |
ctxt.Dict[ | Undocumented |
progstr | Undocumented |
completestr | Undocumented |
instruction:str | Undocumented |
Returns | |
int | Undocumented |
Produce the context hierarchy starting with the command and traversing the complete arguments. This only follows the commands, it doesn't trigger input prompts or callbacks. :param cli: Command being called. :param prog_name: Name of the executable in the shell. :param args: List of complete args before the incomplete value.
Parameters | |
cli:BaseCommand | Undocumented |
ctxt.Dict[ | Undocumented |
progstr | Undocumented |
args:t.List[ | Undocumented |
Returns | |
Context | Undocumented |
Find the Click object that will handle the completion of the incomplete value. Return the object and the incomplete value. :param ctx: Invocation context for the command represented by the parsed complete args. :param args: List of complete args before the incomplete value. :param incomplete: Value being completed. May be empty.
Parameters | |
ctx:Context | Undocumented |
args:t.List[ | Undocumented |
incomplete:str | Undocumented |
Returns | |
t.Tuple[ | Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|