From 9e2be07cfc2267f817c22105ad2a147bc7f8c33e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 16 Mar 2020 17:18:46 +0530 Subject: fix bug in withdrawal operation state machine, allow manual reserve update from CLI --- src/headless/taler-wallet-cli.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/headless') diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index 28618bcc2..2a1040630 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -374,6 +374,18 @@ advancedCli }); }); + advancedCli + .subcommand("updateReserve", "update-reserve", { + help: "Update reserve status.", + }) + .requiredArgument("reservePub", clk.STRING) + .action(async args => { + await withWallet(args, async wallet => { + const r = await wallet.updateReserve(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.", }); -- cgit v1.2.3