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

Function handler

ng-dev/format/files.ts:32–39  ·  view source on GitHub ↗

Yargs command handler for the command.

({files, check}: Arguments<Options>)

Source from the content-addressed store, hash-verified

30
31/** Yargs command handler for the command. */
32async function handler({files, check}: Arguments<Options>) {
33 const expandedFiles = glob.sync(
34 files.map((file) => file.replace(/\/...$/, '/**/*')),
35 {onlyFiles: true},
36 );
37 const executionCmd = check ? checkFiles : formatFiles;
38 process.exitCode = await executionCmd(expandedFiles);
39}
40
41/** CLI command module. */
42export const FilesModule: CommandModule<{}, Options> = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected