예제 #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")