示例#1
0
文件: main.py 项目: kotenev/yokadi
 def completedefault(self, text, line, begidx, endidx):
     """Default completion command.
     Try to see if command is an alias and find the
     appropriate complete function if it exists"""
     nline = resolveAlias(line, self.aliases)
     compfunc = getattr(self, 'complete_' + nline.split()[0])
     matches = compfunc(text, line, begidx, endidx)
     return matches
示例#2
0
文件: main.py 项目: agateau/yokadi
 def completedefault(self, text, line, begidx, endidx):
     """Default completion command.
     Try to see if command is an alias and find the
     appropriate complete function if it exists"""
     nline = resolveAlias(line, self.aliases)
     compfunc = getattr(self, 'complete_' + nline.split()[0])
     matches = compfunc(text, line, begidx, endidx)
     return matches
示例#3
0
文件: main.py 项目: agateau/yokadi
 def default(self, line):
     nline = resolveAlias(line, self.aliases)
     if nline != line:
         return self.onecmd(nline)
     elif nline.isdigit():
         self.do_t_show(nline)
     elif nline == "_":
         self.do_t_show(nline)
     else:
         raise YokadiException("Unknown command. Use 'help' to see all available commands")
示例#4
0
文件: main.py 项目: kotenev/yokadi
 def default(self, line):
     nline = resolveAlias(line, self.aliases)
     if nline != line:
         return self.onecmd(nline)
     elif nline.isdigit():
         self.do_t_show(nline)
     elif nline == "_":
         self.do_t_show(nline)
     else:
         raise YokadiException(
             "Unknown command. Use 'help' to see all available commands")