tadd 'get' command to CLI - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 138c98d7d88b2682cb148cdfd8c6c5463a022ed6
DIR parent 53310690a5c58145426047529eaa9af9db0b2741
HTML Author: ThomasV <thomasv@electrum.org>
Date: Sat, 26 Jan 2019 16:50:51 +0100
add 'get' command to CLI
Diffstat:
M electrum/commands.py | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
DIR diff --git a/electrum/commands.py b/electrum/commands.py
t@@ -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. """