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

Function builder

ng-dev/format/all.ts:20–26  ·  view source on GitHub ↗

Yargs command builder for the command.

(argv: Argv)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected