'Command completion for apply command.'

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

    itemList = [str(i) for (i, item) in enumerate(sorted(self.session.get_itemlist()))]
    if (state == 1):
        return [i for i in itemList if i.startswith(text)]
    return ['']
