#
# This file is part of Hooke.
#
-# Hooke is free software: you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation, either
-# version 3 of the License, or (at your option) any later version.
+# Hooke is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
#
-# Hooke is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
+# Hooke is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+# Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with Hooke. If not, see
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.
def run(self, commands, ui_to_command_queue, command_to_ui_queue):
cmd = self._cmd(commands, ui_to_command_queue, command_to_ui_queue)
- cmd.cmdloop(self._splash_text())
+ cmd.cmdloop(self._splash_text(extra_info={
+ 'get-details':'run `license`',
+ }))
def run_lines(self, commands, ui_to_command_queue, command_to_ui_queue,
lines):