diff options
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index 86eaec64c..bfa1ac4b9 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -179,6 +179,20 @@ program wallet.stop(); }); + + + program + .command("refund-uri <refund-uri>") + .action(async (refundUri, cmdObj) => { + applyVerbose(program.verbose); + console.log("getting refund", refundUri); + const wallet = await getDefaultNodeWallet({ + persistentStoragePath: walletDbPath, + }); + await wallet.applyRefund(refundUri); + wallet.stop(); + }); + program .command("pay-uri <pay-uri") .option("-y, --yes", "automatically answer yes to prompts") |