diff options
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 13 |
1 files changed, 13 insertions, 0 deletions
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.", }); |