add 'get' command to CLI

This commit is contained in:
ThomasV 2019-01-26 16:50:51 +01:00
parent 53310690a5
commit 138c98d7d8

View file

@ -220,6 +220,11 @@ class Commands:
self.wallet.storage.write()
return {'password':self.wallet.has_password()}
@command('w')
def get(self, key):
"""Return item from wallet storage"""
return self.wallet.storage.get(key)
@command('')
def getconfig(self, key):
"""Return a configuration variable. """