USER_INTERFACE_MODULES = [
'commandline',
- #'gui',
+ 'gui',
]
"""List of user interface modules. TODO: autodiscovery
"""
except configparser.NoSectionError:
self.config = {}
- def run(self, hooke, ui_to_command_queue, command_to_ui_queue):
+ def run(self, commands, ui_to_command_queue, command_to_ui_queue):
return
# Assorted useful tidbits for subclasses
help='The name of the command you want help with.')
]
- def _run(self, hooke, inqueue, outqueue, params):
+ def _run(self, commands, inqueue, outqueue, params):
raise NotImplementedError # cmd.Cmd already implements .do_help()
class LocalExitCommand (Command):
""".strip()),
])
- def _run(self, hooke, inqueue, outqueue, params):
+ def _run(self, commands, inqueue, outqueue, params):
"""The guts of the `do_exit/_quit/_EOF` commands.
A `True` return stops :meth:`.cmdloop` execution.