Add the rbt alias command

Review Request #7234 — Created April 21, 2015 and submitted

Information

RBTools
master
1b96916...

Reviewers

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, via rbt alias --list, and to do a "dry run"
of a command, via rbt 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 or rbt commands (defined
by entry points or the presence of an rbt-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 the rbtools.utils.aliases
module to allow aliases to be expanded without being ran.

Ran unit tests.

Tested the rbt alias --list and rbt alias --dry-run commands.
They work as expected.

Description From Last Updated

Add period at end of help string.

gmyersgmyers
reviewbot
  1. 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
    
    
  2. 
      
reviewbot
  1. 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
    
    
  2. 
      
brennie
reviewbot
  1. 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
    
    
  2. 
      
gmyers
  1. 
      
  2. rbtools/commands/alias.py (Diff revision 2)
     
     
     
    Show all issues
    Add period at end of help string.
  3. 
      
brennie
reviewbot
  1. 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
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to master (2964f1a)