Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num Num FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Num Num TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Return Str decorator_list Assign NameStore NameLoad Assign NameStore BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq NameLoad Str body Assign NameStore NameLoad For NameStore NameLoad body Expr Yield NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad Num body Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Yield NameLoad If UnaryOpNot NameLoad body For NameStore NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num NameLoad orelse Assign NameStore BinOpAdd ListLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad TryExcept body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return Num decorator_list
N/A __future__ unicode_literals N/A logging N/A re N/A shlex N/A sys N/A subprocess N/A six rbtools.commands RB_MAIN N/A _arg_re N/A N/A re compile \$(\d+) N/A _SHLEX_SUPPORTS_UNICODE N/A N/A sys version_info N/A 2 7 3 replace_arguments N/A N/A cmd args N/A N/A N/A Do parameter substitution for the given command.

    The special variable $* is expanded to contain all filenames.
     arg_sub N/A N/A m N/A N/A N/A Replace a positional variable with the appropriate argument. N/A index N/A N/A int N/A N/A m group 1 1 N/A N/A N/A N/A args N/A index N/A N/A N/A IndexError N/A N/A N/A N/A did_replacement False N/A shlex_convert_text_type N/A N/A _SHLEX_SUPPORTS_UNICODE N/A isinstance cmd N/A six text_type N/A shlex_convert_text_type N/A N/A cmd N/A N/A cmd encode utf-8 N/A part N/A N/A shlex split cmd N/A N/A N/A part $* N/A N/A did_replacement True N/A arg args N/A N/A N/A arg N/A N/A N/A part subs N/A N/A _arg_re subn arg_sub part N/A N/A subs 0 N/A N/A did_replacement True N/A shlex_convert_text_type N/A N/A part N/A N/A part decode utf-8 N/A N/A part N/A N/A did_replacement N/A N/A arg args N/A N/A N/A arg N/A expand_alias N/A N/A alias args N/A N/A N/A Expand the given alias.

    This function returns a tuple of the list of command line arguments and
    whether or not shell execution is required for the alias.
     N/A use_shell N/A N/A alias startswith ! N/A use_shell N/A N/A command N/A replace_arguments N/A alias N/A 1 args N/A N/A command N/A N/A RB_MAIN N/A list N/A replace_arguments alias args N/A N/A command use_shell N/A run_alias N/A N/A alias args N/A N/A N/A Run the alias with the given arguments, after expanding parameters.

    Parameter expansion is done by the replace_arguments function.
     N/A N/A cmd use_shell N/A expand_alias alias args N/A N/A N/A use_shell N/A N/A cmd N/A N/A subprocess list2cmdline cmd N/A N/A N/A subprocess call cmd shell use_shell N/A N/A N/A ValueError N/A e N/A N/A N/A N/A logging error Could not execute alias "%s"; it was malformed: %s alias e N/A 1 N/A