def _run(self, hooke, inqueue, outqueue, params):
lines = [
'Hooke ' + version(),
- '---',
+ '----',
'Python ' + sys.version]
for name,module in sorted(sys.modules.items()):
if name == 'hooke':
if v != None:
lines.append('%s %s' % (name, v))
lines.extend([
- '---',
+ '----',
'Platform: %s' % ' '.join(platform.uname()),
'User interface: %s' % hooke.ui.name,
- '---',
+ '----',
'Loaded plugins:'])
lines.extend([p.name for p in hooke.plugins])
lines.extend([
- '---',
+ '----',
'Loaded drivers:'])
lines.extend([d.name for d in hooke.drivers])
outqueue.put('\n'.join(lines))
def __call__(self):
blocks = [self.command.help(name_fn=self.name_fn),
- '------',
+ '----',
'Usage: ' + self._usage_string(),
'']
self.cmd.stdout.write('\n'.join(blocks))