rbtools.commands.close¶
Implementation of rbt close.
Classes
|
Close a specific review request as discarded or submitted. |
- class rbtools.commands.close.Close(transport_cls=<class 'rbtools.api.transport.sync.SyncTransport'>, stdout=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, stderr=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, stdin=<_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>)[source]¶
Bases:
Command
Close 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.
- needs_api = True[source]¶
Whether the command needs the API client.
If this is set, the initialization of the command will set
api_client
andapi_root
.New in version 3.0.
- Type:
- args = '<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:
- option_list = [<rbtools.commands.Option object>, <rbtools.commands.Option object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>][source]¶
Command-line options for this command.
- Type:
list
ofOption
orOptionGroup