Move commands into a separate command module
authorJeremy Stanley <fungi@yuggoth.org>
Fri, 9 Nov 2018 21:54:21 +0000 (21:54 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Fri, 9 Nov 2018 22:00:35 +0000 (22:00 +0000)
commitb2e5d66837e8efc2cdc6eaa233a2cd94a8c3741d
treeb4be2f02891dd8c59f396253e2f317240bade491
parent1d57ddb836866f5a07ef6b119a2b4b5381dcf9ba
Move commands into a separate command module

For ease of maintainability, move all the mudpy.misc.command_*()
functions into their own module accessible via mudpy.command.*()
instead. In order to accomplish this, User objects now carry a
universe attribute so that commands they call can identify the
correct universe object in which to act.

Alphabetize the command functions, update the corresponding function
calls in the command elements, add the new module to the API
documentation, and include it in the dynamic module reload list.
doc/source/api.rst
mudpy/__init__.py
mudpy/command.py [new file with mode: 0644]
mudpy/misc.py
share/command.yaml