diff options
author | Florian Dold <florian@dold.me> | 2024-02-13 10:53:43 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-15 21:56:54 +0100 |
commit | 70a803038f1cbe05dc4779bdd87376fd073421be (patch) | |
tree | 6607d69f6906ada9f912e31d9a9e3b65560a7326 /packages/taler-wallet-cli/src/index.ts | |
parent | 2c17e98c336d96f955ec82ad0a1b164e3da90103 (diff) | |
download | wallet-core-70a803038f1cbe05dc4779bdd87376fd073421be.tar.xz |
implement task shepherd, many small fixes and tweaks
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 91dcd2702..f81236cd4 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -284,9 +284,6 @@ async function createLocalWallet( console.error("Operation failed: " + summarizeTalerErrorDetail(ed)); console.error("Error details:", JSON.stringify(ed, undefined, 2)); processExit(1); - } finally { - logger.trace("operation with wallet finished, stopping"); - logger.trace("stopped wallet"); } } @@ -343,6 +340,7 @@ async function withLocalWallet<T>( const wh = await createLocalWallet(walletCliArgs); const w = wh.wallet; const res = await f({ client: w.client, ws: w }); + logger.info("Work done, stopping wallet."); w.stop(); return res; } @@ -956,7 +954,6 @@ depositCli }, ); console.log(`Created deposit ${resp.depositGroupId}`); - await wallet.ws.runPending(); }); }); @@ -1231,9 +1228,9 @@ advancedCli help: "Run pending operations.", }) .action(async (args) => { - await withLocalWallet(args, async (wallet) => { - await wallet.ws.runPending(); - }); + logger.error( + "Subcommand run-pending not supported anymore. Please use run-until-done or the client/server wallet.", + ); }); advancedCli |