diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-16 17:46:57 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-16 17:46:57 +0530 |
commit | cb2fbc7610bed39b98c2fdb18941a22ad6df81b3 (patch) | |
tree | 9d299bbcc4d3ffa088b8c1712c23fa9b764604c1 /src/headless | |
parent | 9e2be07cfc2267f817c22105ad2a147bc7f8c33e (diff) |
fix another withdrawal state machine bug, add 'show-reserve' to advanced CLI
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 14 |
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.", }); |