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

Function handler

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

Yargs command handler for the command.

({check}: Arguments<Options>)

Source from the content-addressed store, hash-verified

27
28/** Yargs command handler for the command. */
29async function handler({check}: Arguments<Options>) {
30 const git = await GitClient.get();
31 const executionCmd = check ? checkFiles : formatFiles;
32 const allFiles = git.allFiles();
33 process.exitCode = await executionCmd(allFiles);
34}
35
36/** CLI command module. */
37export const AllFilesModule: CommandModule<{}, Options> = {

Callers

nothing calls this directly

Calls 2

allFilesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected