From 138c98d7d88b2682cb148cdfd8c6c5463a022ed6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 26 Jan 2019 16:50:51 +0100 Subject: [PATCH] add 'get' command to CLI --- electrum/commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/electrum/commands.py b/electrum/commands.py index 773a83cad..07ec6a5fb 100644 --- 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. """