def invoke(self, args):
     cmd = self.get_cmd(args.function)
     if cmd is None:
         logger.error('Cannot find a {0} with the function `{1}`\n'
             'The available {0}s are:\n  {}\n'
             'Maybe you entered a {0} command instead of a function.\n{}',
             self.cmd_type_name,
             function,
             '\n  '.join(str(compiler) for compiler in instances.get(self.cmd_type_name, {}).values()),
             self.add_help())
     self._apply_options(cmd, args)
     config.save()
Beispiel #2
0
 def invoke(self, args):
     if args.list:
         config.print_config()
         exit(0)
     config.save()
 def invoke(self, args):
     cmd = self.create_cmd(args.function, args.command)
     self._apply_options(cmd, args)
     config.save()
 def invoke(self, args):
     builder = Builder(args.function)
     config.save()