Skip to content

Commit 75de472

Browse files
mhadailyMRHarrison
authored andcommitted
chore(docs): change ember-cli and ember to angular-cli and ng (angular#3726)
1 parent 46340fd commit 75de472

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/angular-cli/ember-cli/lib/models/command.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ Command.prototype.validateAndRun = function(args) {
122122

123123
if (this.works === 'insideProject' && !this.isWithinProject) {
124124
return Promise.reject(new SilentError(
125-
'You have to be inside an ember-cli project in order to use ' +
125+
'You have to be inside an angular-cli project in order to use ' +
126126
'the ' + chalk.green(this.name) + ' command.'
127127
));
128128
}
129129

130130
if (this.works === 'outsideProject' && this.isWithinProject) {
131131
return Promise.reject(new SilentError(
132-
'You cannot use the ' + chalk.green(this.name) + ' command inside an ember-cli project.'
132+
'You cannot use the ' + chalk.green(this.name) + ' command inside an angular-cli project.'
133133
));
134134
}
135135

@@ -363,7 +363,7 @@ Command.prototype.parseArgs = function(commandArgs) {
363363
// ignore 'argv', 'h', and 'help'
364364
if (!commandOptions.hasOwnProperty(key) && key !== 'argv' && key !== 'h' && key !== 'help') {
365365
this.ui.writeLine(chalk.yellow('The option \'--' + key + '\' is not registered with the ' + this.name + ' command. ' +
366-
'Run `ember ' + this.name + ' --help` for a list of supported options.'));
366+
'Run `ng ' + this.name + ' --help` for a list of supported options.'));
367367
}
368368
if (typeof parsedOptions[key] !== 'object') {
369369
commandOptions[camelize(key)] = parsedOptions[key];
@@ -408,7 +408,7 @@ Command.prototype._printCommand = printCommand;
408408
409409
Basic help looks like this:
410410
411-
ember generate <blueprint> <options...>
411+
ng generate <blueprint> <options...>
412412
Generates new code from blueprints
413413
aliases: g
414414
--dry-run (Default: false)
@@ -420,7 +420,7 @@ Command.prototype._printCommand = printCommand;
420420
@method printBasicHelp
421421
*/
422422
Command.prototype.printBasicHelp = function() {
423-
// ember command-name
423+
// ng command-name
424424
var output;
425425
if (this.isRoot) {
426426
output = 'Usage: ' + this.name;

tests/acceptance/new.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ describe('Acceptance: ng new', function () {
116116
return ng(['new', 'foo', '--skip-npm', '--skip-git'])
117117
.then(function () {
118118
return ng(['new', 'foo', '--skip-npm', '--skip-git']).then(() => {
119-
throw new SilentError('Cannot run ng new, inside of ember-cli project should fail.');
119+
throw new SilentError('Cannot run ng new, inside of angular-cli project should fail.');
120120
}, () => {
121121
expect(!existsSync('foo'));
122122
});

0 commit comments

Comments
 (0)