Add the rbt alias command
Review Request #7234 — Created April 21, 2015 and submitted — Latest diff uploaded
The
rbt aliascommand is a new command for manging your aliases
defined in.reviewboardrcfiles. 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 orrbtcommands (defined
by entry points or the presence of anrbt-command-nameexecutable).Some refactoring has been done to the
rbtools.comandsmodule 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 --listandrbt alias --dry-runcommands.
They work as expected.