'Return a list of command names for command completion.'

def completenames(self, text, *ignored):

    dotext = ('do_' + text)
    return ([a[3:] for a in self.ctx.get_names() if a.startswith(dotext)] + [a[3:] for a in self.get_names() if a.startswith(dotext)])
