mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03: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 { spawn } from 'child_process';
|
||||
import { getPlaywrightVersion } from '../common/userAgent';
|
||||
import { wrapInASCIIBox, isLikelyNpxGlobal } from '../utils';
|
||||
import { wrapInASCIIBox, isLikelyNpxGlobal, assert } from '../utils';
|
||||
import { spawnAsync } from '../utils/spawnAsync';
|
||||
import { launchGridAgent } from '../grid/gridAgent';
|
||||
import type { GridFactory } from '../grid/gridServer';
|
||||
@ -48,11 +48,12 @@ program
|
||||
.name(buildBasePlaywrightCLICommand(process.env.PW_LANG_NAME));
|
||||
|
||||
program
|
||||
.command('mark-docker-image > [args...]', { hidden: true })
|
||||
.command('mark-docker-image [dockerImageNameTemplate]', { hidden: true })
|
||||
.description('mark docker image')
|
||||
.allowUnknownOption(true)
|
||||
.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', [])
|
||||
|
Loading…
Reference in New Issue
Block a user