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

Function builder

ng-dev/commit-message/validate-range/cli.ts:21–33  ·  view source on GitHub ↗

Builds the command.

(argv: Argv)

Source from the content-addressed store, hash-verified

19
20/** Builds the command. */
21function builder(argv: Argv) {
22 return argv
23 .positional('startingRef', {
24 description: 'The first ref in the range to select',
25 type: 'string',
26 demandOption: true,
27 })
28 .positional('endingRef', {
29 description: 'The last ref in the range to select',
30 type: 'string',
31 default: 'HEAD',
32 });
33}
34
35/** Handles the command. */
36async function handler({startingRef, endingRef}: Arguments<ValidateRangeOptions>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected