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

Function handler

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

Yargs command handler for the command.

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

Source from the content-addressed store, hash-verified

30
31/** Yargs command handler for the command. */
32async function handler({shaOrRef, check}: Arguments<Options>) {
33 const git = await GitClient.get();
34 const sha = shaOrRef || git.mainBranchName;
35 const executionCmd = check ? checkFiles : formatFiles;
36 const allChangedFilesSince = git.allChangesFilesSince(sha);
37 process.exitCode = await executionCmd(allChangedFilesSince);
38}
39
40/** CLI command module. */
41export const ChangedModule: CommandModule<{}, Options> = {

Callers

nothing calls this directly

Calls 2

allChangesFilesSinceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected