The commandline bits revert some changes from
6e29dc38540b where I'd
confused
UserInterface.run(self, commands, ui_to_command_queue, command_to_ui_queue)
with
Command._run(self, hooke, inqueue, outqueue, params)
- def _run(self, inqueue, outqueue, params):
+ def _run(self, hooke, inqueue, outqueue, params):
"""This is where the command-specific magic will happen.
"""
pass
"""This is where the command-specific magic will happen.
"""
pass
help='The name of the command you want help with.')
]
help='The name of the command you want help with.')
]
- def _run(self, commands, inqueue, outqueue, params):
+ def _run(self, hooke, inqueue, outqueue, params):
raise NotImplementedError # cmd.Cmd already implements .do_help()
class LocalExitCommand (Command):
raise NotImplementedError # cmd.Cmd already implements .do_help()
class LocalExitCommand (Command):
- def _run(self, commands, inqueue, outqueue, params):
+ def _run(self, hooke, inqueue, outqueue, params):
"""The guts of the `do_exit/_quit/_EOF` commands.
A `True` return stops :meth:`.cmdloop` execution.
"""The guts of the `do_exit/_quit/_EOF` commands.
A `True` return stops :meth:`.cmdloop` execution.