From f4ec5b1a32193744e439c04faca0b3d31f49c2bc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 May 2021 16:18:32 +0200 Subject: implement currencies subcommand --- packages/taler-wallet-cli/src/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 8b203a4cd..8a9e28d32 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -604,6 +604,19 @@ advancedCli }); }); +const currenciesCli = walletCli.subcommand("currencies", "currencies", { + help: "Manage currencies.", +}); + +currenciesCli + .subcommand("show", "show", { help: "Show currencies."}) + .action(async (args) => { + await withWallet(args, async (wallet) => { + const currencies = await wallet.getCurrencies(); + console.log(JSON.stringify(currencies, undefined, 2)); + }); + }) + const reservesCli = advancedCli.subcommand("reserves", "reserves", { help: "Manage reserves.", }); -- cgit v1.2.3