rbtools.commands.alias¶
Implementation of rbt alias.
Classes
|
A command for managing aliases defined in .reviewboardrc files. |
- class rbtools.commands.alias.Alias(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:
BaseCommandA command for managing aliases defined in .reviewboardrc files.
- __firstlineno__ = 14¶
- __static_attributes__ = ()¶
- description: ClassVar[str] = 'Manage aliases defined in .reviewboardrc files.'[source]¶
A short description of the command, suitable for display in usage text.
- Type:
- list_aliases()[source]¶
Print a list of .reviewboardrc aliases to the command line.
This function shows in which file each alias is defined in and if the alias is valid (that is, if it won’t be executable because an rbt command exists with the same name).