UNPKG

clipanion

Version:

Type-safe CLI library / framework with no runtime dependencies

14 lines (11 loc) 357 B
import { Command } from '../Command.mjs'; /** * A command that prints the clipanion definitions. */ class DefinitionsCommand extends Command { async execute() { this.context.stdout.write(`${JSON.stringify(this.cli.definitions(), null, 2)}\n`); } } DefinitionsCommand.paths = [[`--clipanion=definitions`]]; export { DefinitionsCommand };