add 'get' command to CLI
This commit is contained in:
@@ -220,6 +220,11 @@ class Commands:
|
|||||||
self.wallet.storage.write()
|
self.wallet.storage.write()
|
||||||
return {'password':self.wallet.has_password()}
|
return {'password':self.wallet.has_password()}
|
||||||
|
|
||||||
|
@command('w')
|
||||||
|
def get(self, key):
|
||||||
|
"""Return item from wallet storage"""
|
||||||
|
return self.wallet.storage.get(key)
|
||||||
|
|
||||||
@command('')
|
@command('')
|
||||||
def getconfig(self, key):
|
def getconfig(self, key):
|
||||||
"""Return a configuration variable. """
|
"""Return a configuration variable. """
|
||||||
|
|||||||
Reference in New Issue
Block a user