From 6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 May 2021 16:24:41 +0200 Subject: implement deletion of withdrawal transactions --- packages/taler-wallet-cli/src/index.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-cli') diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 8a9e28d32..59b8d5c60 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -284,6 +284,21 @@ walletCli }); }); +walletCli + .subcommand("deleteTransaction", "delete-transaction", { + help: "Permanently delete a transaction from the transaction list.", + }) + .requiredArgument("transactionId", clk.STRING, { + help: "Identifier of the transaction to delete", + }) + .action(async (args) => { + await withWallet(args, async (wallet) => { + await wallet.deleteTransaction({ + transactionId: args.deleteTransaction.transactionId, + }); + }); + }); + walletCli .subcommand("handleUri", "handle-uri", { help: "Handle a taler:// URI.", @@ -609,13 +624,13 @@ const currenciesCli = walletCli.subcommand("currencies", "currencies", { }); currenciesCli - .subcommand("show", "show", { help: "Show currencies."}) + .subcommand("show", "show", { help: "Show currencies." }) .action(async (args) => { await withWallet(args, async (wallet) => { const currencies = await wallet.getCurrencies(); console.log(JSON.stringify(currencies, undefined, 2)); }); - }) + }); const reservesCli = advancedCli.subcommand("reserves", "reserves", { help: "Manage reserves.", -- cgit v1.2.3