aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-31 11:49:36 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-31 11:49:36 +0200
commit5a7269b20db0371535669c0faa7f1814d967b5ca (patch)
treec757d7b441875b745e3d83e8a543785e7b82fc9b /src/headless
parent5ec344290efd937fa82c0704bc7c204a0bf14c78 (diff)
cli refunds
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/taler-wallet-cli.ts14
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")