UNPKG

clipanion

Version:

Type-safe CLI library / framework with no runtime dependencies

18 lines (13 loc) 478 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var advanced_Command = require('../Command.js'); /** * A command that prints the clipanion definitions. */ class DefinitionsCommand extends advanced_Command.Command { async execute() { this.context.stdout.write(`${JSON.stringify(this.cli.definitions(), null, 2)}\n`); } } DefinitionsCommand.paths = [[`--clipanion=definitions`]]; exports.DefinitionsCommand = DefinitionsCommand;