Skip to content

Commit

Permalink
chore: fix mark-docker-image CLI command (microsoft#13499)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Apr 12, 2022
1 parent 52e326a commit 95d4041
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/playwright-core/src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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', [])
Expand Down

0 comments on commit 95d4041

Please sign in to comment.