예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def do_version(self, line):
     ret_val = CmdVersion.process_do(line, self.display_info)
     return ret_val if self.quitOnError == True else None
예제 #4
0
 def help_version(self):
     CmdVersion.DisplayUsage()
예제 #5
0
 def do_version(self, line):
     ret_val = CmdVersion.process_do(line, self.display_info)
     return ret_val if self.quitOnError == True else None