示例#1
0
 def complete_build(self, text, line, begidx, endidx):
     completions = []
     if 'type' in self.display_info.keys() and 'package' in self.display_info.keys():
         release_type = self.display_info['type']
         package_name = self.display_info['package']
         build_numbers = CmdBuild.valid_values(release_type, package_name)
         if not text:
             completions = build_numbers[:]
         else:
             completions = [item for item in build_numbers if item.startswith(text)]
     return completions
示例#2
0
 def complete_build(self, text, line, begidx, endidx):
     completions = []
     if 'type' in self.display_info.keys(
     ) and 'package' in self.display_info.keys():
         release_type = self.display_info['type']
         package_name = self.display_info['package']
         build_numbers = CmdBuild.valid_values(release_type, package_name)
         if not text:
             completions = build_numbers[:]
         else:
             completions = [
                 item for item in build_numbers if item.startswith(text)
             ]
     return completions
示例#3
0
 def do_build(self, line):
     ret_val = CmdBuild.process_do(line, self.display_info)
     return ret_val if self.quitOnError == True else None
示例#4
0
 def help_build(self):
     CmdBuild.DisplayUsage()
示例#5
0
 def do_build(self, line):
     ret_val = CmdBuild.process_do(line, self.display_info)
     return ret_val if self.quitOnError == True else None