コード例 #1
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Add debug option to all commands (creates self.debug)
     self.opt('-d', '--debug', action='store_const',
              const=True, default=False, help="print the REST calls used")
     self.opt('-H', '--host', default=None,
              help="hostname or ip for the storage node")
コード例 #2
0
ファイル: tools.py プロジェクト: buhman/python-lunrclient
 def __init__(self):
     # Give our sub command a name
     self._name = 'tools'
     # Create a volume helper with our local storage config
     self.volume = VolumeHelper(LunrConfig.from_storage_conf())
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     self.total = defaultdict(float)
コード例 #3
0
 def __init__(self):
     # Give our sub command a name
     self._name = 'tools'
     # Create a volume helper with our local storage config
     self.volume = VolumeHelper(LunrConfig.from_storage_conf())
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     self.total = defaultdict(float)
コード例 #4
0
ファイル: lunr_shell.py プロジェクト: dwith/python-lunrclient
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Add debug option to all commands (creates self.debug)
     self.opt('-d',
              '--debug',
              action='store_const',
              const=True,
              default=False,
              help="print the REST calls used")
コード例 #5
0
 def __init__(self):
     # Give our sub command a name
     self._name = 'api'
     # let the base class setup methods in our class
     SubCommand.__init__(self)
コード例 #6
0
ファイル: shared.py プロジェクト: dwith/python-lunrclient
 def __init__(self):
     # Give our sub command a name
     self._name = 'env'
     # let the base class setup methods in our class
     SubCommand.__init__(self)