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
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")
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")