Esempio n. 1
0
 def __init__(self):
     self.commands = get_commands()
     _Help.commands = self.commands
     self.options = {
         "endpoint": {"default": None, "help": "connection endpoint"},
         "timeout": {"default": 5, "help": "connection timeout"},
         "json": {"default": False, "action": "store_true", "help": "output to JSON"},
         "prettify": {"default": False, "action": "store_true", "help": "prettify output"},
         "ssh": {"default": None, "help": "SSH Server in the format user@host:port"},
         "ssh_keyfile": {"default": None, "help": "the path to the keyfile to authorise the user"},
         "version": {"default": False, "action": "store_true", "help": "display version and exit"},
     }
Esempio n. 2
0
 def __init__(self):
     self.commands = get_commands()
     _Help.commands = self.commands
     self.options = {
         'endpoint': {'default': None, 'help': 'connection endpoint'},
         'timeout': {'default': 5, 'help': 'connection timeout'},
         'json': {'default': False, 'action': 'store_true',
                  'help': 'output to JSON'},
         'prettify': {'default': False, 'action': 'store_true',
                      'help': 'prettify output'},
         'ssh': {'default': None, 'help': 'SSH Server'},
         'version': {'default': False, 'action': 'store_true',
                     'help': 'display version and exit'}
     }
Esempio n. 3
0
 def __init__(self):
     self.commands = get_commands()
     _Help.commands = self.commands
     self.options = {
         'endpoint': {
             'default': None,
             'help': 'connection endpoint'
         },
         'timeout': {
             'default': 5,
             'help': 'connection timeout'
         },
         'json': {
             'default': False,
             'action': 'store_true',
             'help': 'output to JSON'
         },
         'prettify': {
             'default': False,
             'action': 'store_true',
             'help': 'prettify output'
         },
         'ssh': {
             'default': None,
             'help': 'SSH Server in the format user@host:port'
         },
         'ssh_keyfile': {
             'default': None,
             'help': 'the path to the keyfile to authorise the user'
         },
         'version': {
             'default': False,
             'action': 'store_true',
             'help': 'display version and exit'
         }
     }