UNPKG

@villedemontreal/scripting

Version:
25 lines 839 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TestingtestingHiddenScript = void 0; const core_1 = require("@caporal/core"); const src_1 = require("../../src"); class TestingtestingHiddenScript extends src_1.ScriptBase { get name() { return `${src_1.TESTING_SCRIPT_NAME_PREFIX}testingHiddenScript`; } get description() { return `A testing hidden script`; } async configure(command) { command.hide(); command.option(`--username <name>`, `A username`, { required: true, validator: core_1.program.STRING, }); } async main() { this.logger.info(`username is ${this.options.username}`); } } exports.TestingtestingHiddenScript = TestingtestingHiddenScript; //# sourceMappingURL=testingHiddenScript.js.map