diff options
author | Florian Dold <florian@dold.me> | 2021-05-12 16:18:32 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-12 16:18:32 +0200 |
commit | f4ec5b1a32193744e439c04faca0b3d31f49c2bc (patch) | |
tree | 4f1573d1a7db68c68d9732654c80130e81a2e709 /packages/taler-wallet-cli/src | |
parent | 4da4380480ec7026a1ef8f10589d60669a462497 (diff) | |
download | wallet-core-f4ec5b1a32193744e439c04faca0b3d31f49c2bc.tar.xz |
implement currencies subcommand
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.", }); |