commit 138c98d7d88b2682cb148cdfd8c6c5463a022ed6
parent 53310690a5c58145426047529eaa9af9db0b2741
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 26 Jan 2019 16:50:51 +0100
add 'get' command to CLI
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/electrum/commands.py b/electrum/commands.py
@@ -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. """