chore: allow CLI version override (#10814)

This commit is contained in:
Max Schmitt 2021-12-08 23:32:21 -08:00 committed by GitHub
parent b5933db279
commit 43b7e6c26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ import { GridServer, GridFactory } from '../grid/gridServer';
const packageJSON = require('../../package.json');
program
.version('Version ' + packageJSON.version)
.version('Version ' + (process.env.PW_CLI_DISPLAY_VERSION || packageJSON.version))
.name(buildBasePlaywrightCLICommand(process.env.PW_CLI_TARGET_LANG));
commandWithOpenOptions('open [url]', 'open page in browser specified via -b, --browser', [])