aboutsummaryrefslogtreecommitdiff
path: root/src/headless/taler-wallet-cli.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-16 17:46:57 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-16 17:46:57 +0530
commitcb2fbc7610bed39b98c2fdb18941a22ad6df81b3 (patch)
tree9d299bbcc4d3ffa088b8c1712c23fa9b764604c1 /src/headless/taler-wallet-cli.ts
parent9e2be07cfc2267f817c22105ad2a147bc7f8c33e (diff)
downloadwallet-core-cb2fbc7610bed39b98c2fdb18941a22ad6df81b3.tar.xz
fix another withdrawal state machine bug, add 'show-reserve' to advanced CLI
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r--src/headless/taler-wallet-cli.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 2a1040630..4518d601e 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -374,7 +374,7 @@ advancedCli
});
});
- advancedCli
+advancedCli
.subcommand("updateReserve", "update-reserve", {
help: "Update reserve status.",
})
@@ -386,6 +386,18 @@ advancedCli
});
});
+advancedCli
+ .subcommand("updateReserve", "show-reserve", {
+ help: "Show the current reserve status.",
+ })
+ .requiredArgument("reservePub", clk.STRING)
+ .action(async args => {
+ await withWallet(args, async wallet => {
+ const r = await wallet.getReserve(args.updateReserve.reservePub);
+ console.log("updated reserve:", JSON.stringify(r, undefined, 2));
+ });
+ });
+
const testCli = walletCli.subcommand("testingArgs", "testing", {
help: "Subcommands for testing GNU Taler deployments.",
});