Add the rbt alias command
Review Request #7234 — Created April 21, 2015 and submitted — Latest diff uploaded
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.