'Command completion routine for show.'

def complete_show(self, text, line, arglist, state, begidx, endidx):

    typeList = self.get_manager_types()
    if (state == 1):
        return [item for item in sorted(typeList) if item.upper().startswith(text.upper())]
    elif (state == 2):
        if (arglist[1] not in typeList):
            return ['']
        else:
            pluginList = self.get_manager(arglist[1]).get_plugin_names()
            return [item for item in pluginList if item.upper().startswith(text.upper())]
    else:
        return []
