diff options
author | Florian Dold <florian@dold.me> | 2021-05-20 16:24:41 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-20 16:24:41 +0200 |
commit | 6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4 (patch) | |
tree | db7e785017f30ccff5371592695ae10d92612d16 /packages/taler-wallet-cli/src/index.ts | |
parent | 1fb182700252675eb89bfef5c27637e8396f1258 (diff) | |
download | wallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.tar.xz |
implement deletion of withdrawal transactions
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 19 |
1 files changed, 17 insertions, 2 deletions
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 @@ -285,6 +285,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.", |