Exemplo n.º 1
0
 def description(self):
     if self._description is None:
         classes = get_command_classes()
         cmds = []
         for name, cls in classes.items():
             cmds.append(_format_help(name, cls.short_description))
         self._description = format_docstring(TEMPLATE % '\n'.join(cmds))
     return self._description
Exemplo n.º 2
0
Arquivo: help.py Projeto: torte/lymph
 def description(self):
     if self._description is None:
         classes = get_command_classes()
         cmds = []
         for name, cls in classes.items():
             cmds.append(_format_help(name, cls.short_description))
         self._description = format_docstring(TEMPLATE % '\n'.join(cmds))
         self._description += "\n\nlymph help <command>     to display command specific help"
     return self._description
Exemplo n.º 3
0
Arquivo: help.py Projeto: Xooxy/lymph
 def description(self):
     if self._description is None:
         classes = get_command_classes()
         cmds = []
         for name, cls in classes.items():
             cmds.append(_format_help(name, cls.short_description))
         self._description = (format_docstring(TEMPLATE % '\n'.join(cmds)) +
             "\n\nlymph help <command>     to display command specific help")
     return self._description
Exemplo n.º 4
0
from lymph.cli.base import Command, format_docstring, get_command_class

HELP = format_docstring("""
Usage: lymph [options] <command> [<args>...]

{COMMON_OPTIONS}

Commands:
  instance   Run a single service instance (one process).
  node       Run a node service that manages a group of processes on the same
             machine.
  request    Send a request message to some service and output the reply.
  inspect    Describe the available rpc methods of a service.
  tail       Stream the logs of one or more services.
  discover   Show available services.
  help       Display help information about lymph.

""")


class HelpCommand(Command):
    """
    Usage: lymph help [<command>]
    """

    short_description = 'Display help information about lymph.'
    needs_config = False

    def run(self):
        name = self.args['<command>']
        if name:
Exemplo n.º 5
0
from lymph.cli.base import Command, format_docstring, get_command_class


HELP = format_docstring("""
Usage: lymph [options] <command> [<args>...]

{COMMON_OPTIONS}

Commands:
  instance   Run a single service instance (one process).
  node       Run a node service that manages a group of processes on the same
             machine.
  request    Send a request message to some service and output the reply.
  inspect    Describe the available rpc methods of a service.
  tail       Stream the logs of one or more services.
  discover   Show available services.
  help       Display help information about lymph.

""")


class HelpCommand(Command):
    """
    Usage: lymph help [<command>]
    """

    short_description = 'Display help information about lymph.'
    needs_config = False

    def run(self):
        name = self.args['<command>']