Source code for core.plugs.all

# core/plugs/all.py
#
#

""" show all attributes available. """

__copyright__ = "Copyright 2014 B.H.J Thate"

## IMPORTS

from core import kernel, Object

import os
import time

## all command

[docs]def all(event): rest = event.get_rest() result = [] for obj in event.objects(): for key in obj.get_obj(): if key not in result: result.append(key) args = rest.split() for arg in args: result = filter(lambda x: arg not in x, result) event.reply(" ".join(result)) event.ok()
kernel.cmnds.register("all", all)