def execute(self): subcommand_class = Command.get_command(self.subcommand) if not subcommand_class: self.error("'%s' is not a recognized subcommand." % self.subcommand) command = subcommand_class(self.run_tracker, self.root_dir, self.parser, ['--help']) return command.execute()
def _find_all_commands(): for cmd in Command.all_commands(): cls = Command.get_command(cmd) yield '%s\t%s' % (cmd, cls.__doc__)
def _parse_command(root_dir, args): command, args = _synthesize_command(root_dir, args) return Command.get_command(command), args
def execute(self): subcommand_class = Command.get_command(self.subcommand) if not subcommand_class: self.error("'%s' is not a recognized subcommand." % self.subcommand) command = subcommand_class(self.run_tracker, self.root_dir, self.parser, ["--help"]) return command.execute()