rbtools.commands.login¶
Implementation of rbt login.
Classes
|
Logs into a Review Board server. |
- class rbtools.commands.login.Login(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:
BaseCommand
Logs into a Review Board server.
The user will be prompted for a username and password, unless otherwise passed on the command line, allowing the user to log in and save a session cookie without needing to be in a repository or posting to the server.
If the user is already logged in, this won’t do anything.
- needs_api: bool = 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:
- option_list: List[Union[Option, OptionGroup]] = [<rbtools.commands.base.options.OptionGroup object>][source]¶
Command-line options for this command.
- Type:
list
ofOption
orOptionGroup