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

Function handler

ng-dev/config/validate/cli.ts:22–35  ·  view source on GitHub ↗

Handles the command.

()

Source from the content-addressed store, hash-verified

20
21/** Handles the command. */
22async function handler() {
23 try {
24 await checkPortability();
25 await checkValidity();
26 Log.info(`${green('✓')} ng-dev configuration validation passed`);
27 } catch (error) {
28 if (error instanceof ConfigValidationError) {
29 error.errors.forEach((e) => Log.info(e));
30 } else {
31 Log.info(error);
32 }
33 Log.info(`${red('✘')} ng-dev configuration validation failed, see above for more details`);
34 }
35}
36
37/** yargs command module for logging into the ng-dev service. */
38export const ValidateModule: CommandModule<{}, Options> = {

Callers

nothing calls this directly

Calls 2

checkPortabilityFunction · 0.90
checkValidityFunction · 0.90

Tested by

no test coverage detected