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)
commite25d11c16634028eaf5a498adf0aacc0ad9ffda0
treeb4be2f02891dd8c59f396253e2f317240bade491
parentcc75295d19d9d93c101810143f9a57ec5e7b0a24
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