Example #1
0
 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()
Example #2
0
def _find_all_commands():
  for cmd in Command.all_commands():
    cls = Command.get_command(cmd)
    yield '%s\t%s' % (cmd, cls.__doc__)
Example #3
0
def _parse_command(root_dir, args):
  command, args = _synthesize_command(root_dir, args)
  return Command.get_command(command), args
Example #4
0
def _find_all_commands():
    for cmd in Command.all_commands():
        cls = Command.get_command(cmd)
        yield '%s\t%s' % (cmd, cls.__doc__)
Example #5
0
def _parse_command(root_dir, args):
    command, args = _synthesize_command(root_dir, args)
    return Command.get_command(command), args
Example #6
0
 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()