Add the rbt alias command
Review Request #7234 — Created April 21, 2015 and submitted
The
rbt alias
command is a new command for manging your aliases
defined in.reviewboardrc
files. It currently has the capability to
list all defined aliases, viarbt alias --list
, and to do a "dry run"
of a command, viarbt alias --dry-run <ALIAS>
.The alias listing will show what files aliases are defined in, as well
as if they are overridden by other aliases orrbt
commands (defined
by entry points or the presence of anrbt-command-name
executable).Some refactoring has been done to the
rbtools.comands
module to
handle command detection so that it can be reused by the new command.
Refactoring has also been performed on therbtools.utils.aliases
module to allow aliases to be expanded without being ran.
Ran unit tests.
Tested the
rbt alias --list
andrbt alias --dry-run
commands.
They work as expected.
Description | From | Last Updated |
---|---|---|
Add period at end of help string. |
gmyers |
-
Tool: PEP8 Style Checker Processed Files: rbtools/utils/testbase.py rbtools/commands/alias.py rbtools/commands/main.py rbtools/commands/__init__.py rbtools/clients/tests.py rbtools/utils/filesystem.py setup.py rbtools/utils/aliases.py
-
Tool: Pyflakes Processed Files: rbtools/utils/testbase.py rbtools/commands/alias.py rbtools/commands/main.py rbtools/commands/__init__.py rbtools/clients/tests.py rbtools/utils/filesystem.py setup.py rbtools/utils/aliases.py Tool: PEP8 Style Checker Processed Files: rbtools/utils/testbase.py rbtools/commands/alias.py rbtools/commands/main.py rbtools/commands/__init__.py rbtools/clients/tests.py rbtools/utils/filesystem.py setup.py rbtools/utils/aliases.py
-
Tool: PEP8 Style Checker Processed Files: rbtools/utils/testbase.py rbtools/commands/alias.py rbtools/commands/main.py rbtools/commands/__init__.py rbtools/clients/tests.py rbtools/utils/filesystem.py setup.py rbtools/utils/aliases.py Tool: Pyflakes Processed Files: rbtools/utils/testbase.py rbtools/commands/alias.py rbtools/commands/main.py rbtools/commands/__init__.py rbtools/clients/tests.py rbtools/utils/filesystem.py setup.py rbtools/utils/aliases.py