X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=share%2Fcommand.yaml;fp=share%2Fcommand.yaml;h=87da9a39a532659838adb7930c1d4b1a58cafc84;hp=0f4df404080ea7b15949f876f670f5e5fdc379bb;hb=d1362ea83d4d7eae9dd786109c02224928b2bf01;hpb=0ac91f791c2f9ff18ecd6a0390a78f5175cc3aa2 diff --git a/share/command.yaml b/share/command.yaml index 0f4df40..87da9a3 100644 --- a/share/command.yaml +++ b/share/command.yaml @@ -20,6 +20,20 @@ command.create.description: Create a new element in the universe. command.create.help: Ways to create an element:$(eol)$(eol) create actor.avatar_fred_1$(eol) create other.garply foo/bar/baz +command.evaluate.debugging: true +command.evaluate.description: Evaluate a Python expression. +command.evaluate.help: For debugging purposes, you can use this to run certain + Python language expressions within the running engine's context, though for + safety reasons only a limited set of builtins are allowed, as well as + objects in the mudpy package namespace and the active universe object. + Expressions containing "__" or "lambda" are also prohobited for additional + safety. Everything following the word "evaluate" is assumed to be a Python + expression, and is passed to the eval() built-in, outputting a string + representation of whatever it returns. Any exceptions are caught in an + attempt to avoid accidentally crashing the engine. This command is mostly + useful for inspecting the contents of in-memory objects, for + example:$(eol)$(eol) evaluate universe.groups['actor'].keys() + command.delete.administrative: true command.delete.description: Delete an existing facet from an element. command.delete.help: You can delete any facet of an element as @@ -95,6 +109,5 @@ command.show.help: Here are the possible incantations ( is required, data files)$(eol) show group (list the elements in a group)$(eol) show groups (list all element group names)$(eol) show log [level [start [stop]]] (list logs above level from start to - stop)$(eol) show result (evaluate a python - expression)$(eol) show time (return several current timer + stop)$(eol) show time (return several current timer values)$(eol) show version (display running version and dependencies)