From 70a803038f1cbe05dc4779bdd87376fd073421be Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 13 Feb 2024 10:53:43 +0100 Subject: implement task shepherd, many small fixes and tweaks --- packages/taler-wallet-cli/src/index.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'packages/taler-wallet-cli/src') 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( 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 -- cgit v1.2.3