示例#1
0
def _parse_command(root_dir, args):
  command, args = _synthesize_command(root_dir, args)
  return Command.get_command(command), args
示例#2
0
def _find_all_commands():
  for cmd in Command.all_commands():
    cls = Command.get_command(cmd)
    yield '%s\t%s' % (cmd, cls.__doc__)
示例#3
0
def _find_all_commands():
  for cmd in Command.all_commands():
    cls = Command.get_command(cmd)
    yield '%s\t%s' % (cmd, cls.__doc__)
示例#4
0
def _parse_command(root_dir, args):
  command, args = _synthesize_command(root_dir, args)
  return Command.get_command(command), args
示例#5
0
文件: help.py 项目: govindkabra/pants
 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()