mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: fix mark-docker-image CLI command (#13499)
This commit is contained in:
parent
52e326abd1
commit
95d4041b8b
@ -33,7 +33,7 @@ import type { BrowserType } from '../client/browserType';
|
|||||||
import type { BrowserContextOptions, LaunchOptions } from '../client/types';
|
import type { BrowserContextOptions, LaunchOptions } from '../client/types';
|
||||||
import { spawn } from 'child_process';
|
import { spawn } from 'child_process';
|
||||||
import { getPlaywrightVersion } from '../common/userAgent';
|
import { getPlaywrightVersion } from '../common/userAgent';
|
||||||
import { wrapInASCIIBox, isLikelyNpxGlobal } from '../utils';
|
import { wrapInASCIIBox, isLikelyNpxGlobal, assert } from '../utils';
|
||||||
import { spawnAsync } from '../utils/spawnAsync';
|
import { spawnAsync } from '../utils/spawnAsync';
|
||||||
import { launchGridAgent } from '../grid/gridAgent';
|
import { launchGridAgent } from '../grid/gridAgent';
|
||||||
import type { GridFactory } from '../grid/gridServer';
|
import type { GridFactory } from '../grid/gridServer';
|
||||||
@ -48,11 +48,12 @@ program
|
|||||||
.name(buildBasePlaywrightCLICommand(process.env.PW_LANG_NAME));
|
.name(buildBasePlaywrightCLICommand(process.env.PW_LANG_NAME));
|
||||||
|
|
||||||
program
|
program
|
||||||
.command('mark-docker-image > [args...]', { hidden: true })
|
.command('mark-docker-image [dockerImageNameTemplate]', { hidden: true })
|
||||||
.description('mark docker image')
|
.description('mark docker image')
|
||||||
.allowUnknownOption(true)
|
.allowUnknownOption(true)
|
||||||
.action(function(dockerImageNameTemplate) {
|
.action(function(dockerImageNameTemplate) {
|
||||||
writeDockerVersion(dockerImageNameTemplate);
|
assert(dockerImageNameTemplate, 'dockerImageNameTemplate is required');
|
||||||
|
writeDockerVersion(dockerImageNameTemplate).catch(logErrorAndExit);
|
||||||
});
|
});
|
||||||
|
|
||||||
commandWithOpenOptions('open [url]', 'open page in browser specified via -b, --browser', [])
|
commandWithOpenOptions('open [url]', 'open page in browser specified via -b, --browser', [])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user