rbtools.commands.close¶
Implementation of rbt close.
Classes
|
Close a specific review request as discarded or submitted. |
- class rbtools.commands.close.Close(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:
BaseCommandClose a specific review request as discarded or submitted.
By default, the command will change the status to submitted. The user can provide an optional description for this action.
- __firstlineno__ = 13¶
- __static_attributes__ = ()¶
- args: ClassVar[str] = '<review-request-id>'[source]¶
Usage text for what arguments the command takes.
Arguments for the command are anything passed in other than defined options (for example, revisions passed to rbt post).
- Type:
- check_valid_type(close_type)[source]¶
Check if the user specified a proper type.
Type must either be ‘discarded’ or ‘submitted’. If the type is wrong, the command will stop and alert the user.
- needs_api: ClassVar[bool] = True[source]¶
Whether the command needs the API client.
If this is set, the initialization of the command will set
api_clientandapi_root.Added in version 3.0.
- Type:
- option_list: ClassVar[list[Option | OptionGroup]] = [<rbtools.commands.base.options.Option object>, <rbtools.commands.base.options.Option object>, <rbtools.commands.base.options.OptionGroup object>, <rbtools.commands.base.options.OptionGroup object>][source]¶
Command-line options for this command.
- Type:
listofOptionorOptionGroup