diff options
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index 659cffe67..86eaec64c 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -127,7 +127,7 @@ program }); program - .command("withdraw-url <withdraw-url>") + .command("withdraw-uri <withdraw-uri>") .action(async (withdrawUrl, cmdObj) => { applyVerbose(program.verbose); console.log("withdrawing", withdrawUrl); @@ -166,7 +166,21 @@ program }); program - .command("pay-url <pay-url>") + .command("tip-uri <tip-uri>") + .action(async (tipUri, cmdObj) => { + applyVerbose(program.verbose); + console.log("getting tip", tipUri); + const wallet = await getDefaultNodeWallet({ + persistentStoragePath: walletDbPath, + }); + const res = await wallet.getTipStatus(tipUri); + console.log("tip status", res); + await wallet.acceptTip(tipUri); + wallet.stop(); + }); + +program + .command("pay-uri <pay-uri") .option("-y, --yes", "automatically answer yes to prompts") .action(async (payUrl, cmdObj) => { applyVerbose(program.verbose); |