[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-cli: add subcommand fo
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-cli: add subcommand for aborting txns |
Date: |
Thu, 12 Jan 2023 11:40:00 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 81157c519 wallet-cli: add subcommand for aborting txns
81157c519 is described below
commit 81157c519b31964587548e08171a76c67eea9a2b
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jan 12 11:39:57 2023 +0100
wallet-cli: add subcommand for aborting txns
---
packages/taler-wallet-cli/src/index.ts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
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.",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-cli: add subcommand for aborting txns,
gnunet <=