[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-core] branch master updated: headless wallet:
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-core] branch master updated: headless wallet: add parameters for test-withdraw subcommand |
Date: |
Fri, 13 Sep 2019 02:04:42 +0200 |
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 36a4a621 headless wallet: add parameters for test-withdraw subcommand
36a4a621 is described below
commit 36a4a6218c86f9c352a3bed4bc51dc54389714be
Author: Florian Dold <address@hidden>
AuthorDate: Fri Sep 13 02:04:38 2019 +0200
headless wallet: add parameters for test-withdraw subcommand
---
src/headless/taler-wallet-cli.ts | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index ef9030fe..7d4acb2f 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -51,14 +51,21 @@ function applyVerbose(verbose: boolean) {
program
.command("test-withdraw")
+ .option(
+ "-e, --exchange <exchange-url>",
+ "exchange base URL",
+ "https://exchange.test.taler.net/",
+ )
+ .option("-a, --amount <withdraw-amt>", "amount to withdraw", "TESTKUDOS:10")
+ .option("-b, --bank <bank-url>", "bank base URL",
"https://bank.test.taler.net/")
.description("withdraw test currency from the test bank")
- .action(async () => {
+ .action(async cmdObj => {
applyVerbose(program.verbose);
console.log("test-withdraw command called");
const wallet = await getDefaultNodeWallet({
persistentStoragePath: walletDbPath,
});
- await withdrawTestBalance(wallet);
+ await withdrawTestBalance(wallet, cmdObj.amount, cmdObj.bank,
cmdObj.exchange);
process.exit(0);
});
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-core] branch master updated: headless wallet: add parameters for test-withdraw subcommand,
gnunet <=