aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-cli/src/index.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 90dc2fdd1..4f84bb6c4 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -330,6 +330,25 @@ transactionsCli
});
});
+transactionsCli
+ .subcommand("abortTransaction", "delete", {
+ help: "Abort a transaction.",
+ })
+ .requiredArgument("transactionId", clk.STRING, {
+ help: "Identifier of the transaction to delete",
+ })
+ .flag("force", ["--force"], {
+ help: "Force aborting the transaction. Might lose money."
+ })
+ .action(async (args) => {
+ await withWallet(args, async (wallet) => {
+ await wallet.client.call(WalletApiOperation.AbortTransaction, {
+ transactionId: args.abortTransaction.transactionId,
+ forceImmediateAbort: args.abortTransaction.force,
+ });
+ });
+ });
+
walletCli
.subcommand("version", "version", {
help: "Show version details.",