rbtools.commands.login¶
Implementation of rbt login.
Classes
|
Logs into a Review Board server. |
- class rbtools.commands.login.Login(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:
BaseCommandLogs into a Review Board server.
The user will either be directed to log in via the Review Board web page, or prompted for a username and password. This depends on whether the
--web-loginoption is enabled.Optionally, the user can pass an API token or username and password on the command line.
A session cookie will be saved upon successful authentication.
If the user is already logged in, this won’t do anything.
Changed in version 6.0: Deprecated the
-loption in favour of--debug.Changed in version 5.0: Added the
--weboption for web-based login, along with the--openand--enable-loggingoptions that are specific to web-based login.- __firstlineno__ = 23¶
- __static_attributes__ = ('_global_options', 'api_client', 'api_root', 'server_url')¶
- create_parser(*args, **kwargs) argparse.ArgumentParser[source]¶
Create and return the argument parser for this command.
Added in version 6.0.
- Parameters:
- Returns:
The argument parser.
- Return type: