def complete_version(self, text, line, begidx, endidx): completions = [] if 'type' in self.display_info.keys(): release_type = self.display_info['type'] release_versions = CmdVersion.valid_values(release_type) if not text: completions = release_versions[:] else: completions = [item for item in release_versions if item.startswith(text)] return completions
def complete_version(self, text, line, begidx, endidx): completions = [] if 'type' in self.display_info.keys(): release_type = self.display_info['type'] release_versions = CmdVersion.valid_values(release_type) if not text: completions = release_versions[:] else: completions = [ item for item in release_versions if item.startswith(text) ] return completions
def do_version(self, line): ret_val = CmdVersion.process_do(line, self.display_info) return ret_val if self.quitOnError == True else None
def help_version(self): CmdVersion.DisplayUsage()