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
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
def do_build(self, line): ret_val = CmdBuild.process_do(line, self.display_info) return ret_val if self.quitOnError == True else None
def help_build(self): CmdBuild.DisplayUsage()