rbtools.commands.diff¶
Implementation of rbt diff.
Classes
|
Prints a diff to the terminal. |
- class rbtools.commands.diff.Diff(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
Prints a diff to the terminal.
- 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:
- needs_diffs = True[source]¶
Whether the command needs to generate diffs.
If this is set, the initialization of the command will check for the presence of a diff tool compatible with the chosen type of repository.
This depends on
needs_repository
andneeds_scm_client
both being set toTrue
.New in version 4.0.
- Type:
- needs_repository = True[source]¶
Whether the command needs the remote repository object.
If this is set, the initialization of the command will set
repository
.New in version 3.0.
- Type:
- needs_scm_client = True[source]¶
Whether the command needs the SCM client.
If this is set, the initialization of the command will set
repository_info
andtool
.New in version 3.0.
- Type:
- args = '[revisions]'[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.OptionGroup object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>, <rbtools.commands.OptionGroup object>][source]¶
Command-line options for this command.
- Type:
list
ofOption
orOptionGroup