Example #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
Example #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
Example #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
Example #4
0
 def help_build(self):
     CmdBuild.DisplayUsage()
Example #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