UNPKG

@qualweb/cli

Version:
21 lines 934 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutputFormatEnum = void 0; exports.addOutputOptions = addOutputOptions; const commander_1 = require("commander"); var OutputFormatEnum; (function (OutputFormatEnum) { OutputFormatEnum["JSON"] = "json"; OutputFormatEnum["EARL"] = "earl"; })(OutputFormatEnum || (exports.OutputFormatEnum = OutputFormatEnum = {})); ; function addOutputOptions(command) { const filePathOption = new commander_1.Option('-o, --out-file <path>', 'Output file path'); const fileTypeOption = new commander_1.Option('--format <format>', 'Output file format. If omitted, will write to stdout. "json" uses QualWeb\'s own JSON format.') .choices(Object.values(OutputFormatEnum)) .default(OutputFormatEnum.JSON); command.addOption(filePathOption); command.addOption(fileTypeOption); return command; } //# sourceMappingURL=output.js.map