rbtools.commands.setup_completion¶
Implementation of rbt setup-completion.
Classes
|
Setup auto-completion for rbt. |
- class rbtools.commands.setup_completion.SetupCompletion(transport_cls: Type[Transport] = <class 'rbtools.api.transport.sync.SyncTransport'>, stdout: TextIO = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, stderr: TextIO = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, stdin: TextIO = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>)[source]¶
Bases:
BaseCommand
Setup auto-completion for rbt.
This outputs a script for the given shell to enable auto-completion of rbt.
Changed in version 5.0: This no longer attempts to write files to a system directory, and instead outputs to the console.
- description: str = 'Output RBTools auto-completion code for bash or zsh.'[source]¶
A short description of the command, suitable for display in usage text.
- Type: