add 'get' command to CLI
This commit is contained in:
parent
53310690a5
commit
138c98d7d8
@ -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. """
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user