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

Function builder

ng-dev/release/stamping/cli.ts:27–45  ·  view source on GitHub ↗
(args: Argv)

Source from the content-addressed store, hash-verified

25}
26
27function builder(args: Argv): Argv<Options> {
28 return args
29 .option('mode', {
30 demandOption: true,
31 description: 'Whether the env-stamp should be built for a snapshot or release',
32 choices: ['snapshot' as const, 'release' as const],
33 })
34 .option('includeVersion', {
35 type: 'boolean',
36 description: 'Whether the version should be included in the stamp.',
37 default: true,
38 })
39 .option('additionalStampingScript', {
40 type: 'string',
41 description:
42 'Working-dir relative or absolute path to an ESM script which can ' +
43 'print additional stamping variables',
44 });
45}
46
47async function handler({mode, includeVersion, additionalStampingScript}: Arguments<Options>) {
48 await printEnvStamp(mode, includeVersion);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected