UNPKG

@dhlab/e2e-autogen

Version:

Google 스프레드시트 기반 시나리오를 Playwright 테스트 스텁 코드로 자동 생성하고, 테스트 실행 결과를 다시 시트에 업데이트하는 CLI 도구

24 lines (23 loc) 947 B
var _VersionCommand_instances, _VersionCommand_showVersion; Object.defineProperty(exports, "__esModule", { value: true }); exports.VersionCommand = void 0; const tslib_1 = require("tslib"); const package_json_1 = tslib_1.__importDefault(require("../../package.json")); const base_command_1 = require("./base-command"); /** * CLI 버전 정보를 표시하는 명령어를 수행한다. */ class VersionCommand extends base_command_1.BaseCommand { constructor() { super(...arguments); _VersionCommand_instances.add(this); } async execute() { tslib_1.__classPrivateFieldGet(this, _VersionCommand_instances, "m", _VersionCommand_showVersion).call(this); process.exit(0); } } exports.VersionCommand = VersionCommand; _VersionCommand_instances = new WeakSet(), _VersionCommand_showVersion = function _VersionCommand_showVersion() { console.log(`e2e-autogen v${package_json_1.default.version}`); };