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