CLI module

class rebasehelper.cli.CLI(args=None)[source]

Class for processing data from commandline

static build_parser(available_choices_only=False)[source]
class rebasehelper.cli.CliHelper[source]
classmethod convert_macros_to_dict(macros_list: List[str]) → Dict[str, str][source]

Converts macros from CLI to a dictionary.

Parameters:macros_list – List of macros in the format ‘MACRO EXPRESSION’.
Returns:The converted macros, MACRO are keys, EXPRESSION are values.
Raises:RebaseHelperError if the macros don’t follow the correct format.
classmethod run()[source]