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

Function builder

ng-dev/format/changed.ts:21–29  ·  view source on GitHub ↗

Yargs command builder for the command.

(argv: Argv)

Source from the content-addressed store, hash-verified

19
20/** Yargs command builder for the command. */
21function builder(argv: Argv): Argv<Options> {
22 return argv
23 .option('check', {
24 type: 'boolean',
25 default: process.env['CI'] ? true : false,
26 description: 'Run the formatter to check formatting rather than updating code format',
27 })
28 .positional('shaOrRef', {type: 'string'});
29}
30
31/** Yargs command handler for the command. */
32async function handler({shaOrRef, check}: Arguments<Options>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected