outqueue.put(e)
return 0
- def _run(self, inqueue, outqueue, params):
+ def _run(self, hooke, inqueue, outqueue, params):
"""This is where the command-specific magic will happen.
"""
pass
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):
""".strip()),
])
- 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.