MCPcopy Create free account
hub / github.com/angular/dev-infra / builder

Function builder

ng-dev/release/recover-ci-publish/cli.ts:25–41  ·  view source on GitHub ↗

Yargs command builder for configuring the `ng-dev release recover-ci-publish` command.

(argv: Argv)

Source from the content-addressed store, hash-verified

23
24/** Yargs command builder for configuring the `ng-dev release recover-ci-publish` command. */
25function builder(argv: Argv): Argv<ReleaseRecoverCiPublishOptions> {
26 return addGithubTokenOption(argv)
27 .positional('run-id', {
28 type: 'number',
29 demandOption: true,
30 description: 'The GitHub Actions workflow run ID containing the release packages to recover.',
31 })
32 .option('dry-run', {
33 type: 'boolean',
34 default: false,
35 description: 'Run the recovery process in dry-run mode (skips actual publishing).',
36 })
37 .option('publish-registry', {
38 type: 'string',
39 description: 'NPM registry URL to publish packages to (overrides config).',
40 }) as unknown as Argv<ReleaseRecoverCiPublishOptions>;
41}
42
43/** Yargs command handler for recovering a CI publish run. */
44async function handler(args: Arguments<ReleaseRecoverCiPublishOptions>) {

Callers

nothing calls this directly

Calls 1

addGithubTokenOptionFunction · 0.85

Tested by

no test coverage detected