'Command completion routine for use.'

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

    typeList = self.get_manager_types()
    if (state == 1):
        pluginlist = []
        for manager in self.get_manager_list():
            pluginlist += manager.get_plugin_names()
        return [item for item in sorted(pluginlist) if item.upper().startswith(text.upper())]
    else:
        return []
