UNPKG

@kadena/kadena-cli

Version:

Kadena CLI tool to interact with the Kadena blockchain (manage keys, transactions, etc.)

24 lines 915 B
import { createConfigInitCommand } from './commands/configInit.js'; import { createConfigShowCommand } from './commands/configShow.js'; /** * Represents the root command for the configuration CLI. * @type {string} */ const SUBCOMMAND_ROOT = 'config'; /** * Factory function to generate a configuration command with subcommands. * * @param {Command} program - The commander program object. * @param {string} version - The version of the CLI. */ export function configCommandFactory(program, version) { const configProgram = program .command(SUBCOMMAND_ROOT) .description(`Tool for setting up and managing the CLI configuration and contexts`); /* Create project configuration all projects bootstrap comes from this configuration */ createConfigInitCommand(configProgram, version); createConfigShowCommand(configProgram, version); } //# sourceMappingURL=index.js.map