Handles the command.
()
| 20 | |
| 21 | /** Handles the command. */ |
| 22 | async 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. */ |
| 38 | export const ValidateModule: CommandModule<{}, Options> = { |
nothing calls this directly
no test coverage detected