mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 15:36:23 +08:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
'use strict';
|
|
|
|
const Command = require('../models/command');
|
|
const SilentError = require('silent-error');
|
|
const chalk = require('chalk');
|
|
|
|
module.exports = Command.extend({
|
|
skipHelp: true,
|
|
unknown: true,
|
|
|
|
printBasicHelp() {
|
|
return chalk.red(`No help entry for '${this.name}'`);
|
|
},
|
|
|
|
validateAndRun() {
|
|
throw new SilentError(`The specified command ${this.name} is invalid. For available options, see \`ng help\`.`);
|
|
},
|
|
});
|