Exemplo n.º 1
0
 def complete_cache(self, text, line, begidx, endidx):
     completions = []
     cache_completions = CmdCache.valid_values()
     if not text:
         completions = cache_completions[:]
     else:
         completions = [item for item in cache_completions if item.startswith(text)]
     return completions
Exemplo n.º 2
0
 def complete_cache(self, text, line, begidx, endidx):
     completions = []
     cache_completions = CmdCache.valid_values()
     if not text:
         completions = cache_completions[:]
     else:
         completions = [
             item for item in cache_completions if item.startswith(text)
         ]
     return completions
Exemplo n.º 3
0
 def do_cache(self, line):
     ret_val = CmdCache.process_do(line, self.display_info)
     return ret_val if self.quitOnError == True else None
Exemplo n.º 4
0
 def help_cache(self):
     CmdCache.DisplayUsage()
Exemplo n.º 5
0
 def do_cache(self, line):
     ret_val = CmdCache.process_do(line, self.display_info)
     return ret_val if self.quitOnError == True else None