UNPKG

cosmic-interchain-cli

Version:

A command-line utility for Cosmic Wire's interchain messaging protocol

31 lines 1.01 kB
import { readIsmConfig } from '../ism/read.js'; import { log, logGray } from '../logger.js'; import { addressCommandOption, chainCommandOption, outputFileCommandOption, } from './options.js'; /** * Parent command */ export const ismCommand = { command: 'ism', describe: 'Operations relating to ISMs', builder: (yargs) => yargs.command(read).version(false).demandCommand(), handler: () => log('Command required'), }; export const read = { command: 'read', describe: 'Reads onchain ISM configuration for a given address', builder: { chain: { ...chainCommandOption, demandOption: true, }, address: addressCommandOption('Address of the Interchain Security Module to read.', true), out: outputFileCommandOption(), }, handler: async (argv) => { logGray('Interchain ISM Read'); logGray('------------------'); await readIsmConfig(argv); process.exit(0); }, }; //# sourceMappingURL=ism.js.map