diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index b3abbac6f..249198e3c 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -550,6 +550,25 @@ exchangesCli }); exchangesCli + .subcommand("exchangesShowCmd", "show", { + help: "Show exchange details", + }) + .requiredArgument("url", clk.STRING, { + help: "Base URL of the exchange.", + }) + .action(async (args) => { + await withWallet(args, async (wallet) => { + const resp = await wallet.client.call( + WalletApiOperation.GetExchangeDetailedInfo, + { + exchangeBaseUrl: args.exchangesShowCmd.url, + }, + ); + console.log(JSON.stringify(resp, undefined, 2)); + }); + }); + +exchangesCli .subcommand("exchangesAddCmd", "add", { help: "Add an exchange by base URL.", }) |