File tree Expand file tree Collapse file tree
packages/@angular/cli/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as fs from 'fs' ;
22import * as path from 'path' ;
3+ import * as chalk from 'chalk' ;
34import denodeify = require( 'denodeify' ) ;
45
56import InitCommand from './init' ;
@@ -15,7 +16,7 @@ const mkdir = denodeify(fs.mkdir);
1516
1617const NewCommand = Command . extend ( {
1718 name : 'new' ,
18- description : `Creates a new directory and a new Angular app.` ,
19+ description : `Creates a new directory and a new Angular app eg. "ng new [name]" .` ,
1920 works : 'outsideProject' ,
2021
2122 availableOptions : [
@@ -125,7 +126,8 @@ const NewCommand = Command.extend({
125126
126127 if ( ! packageName ) {
127128 return Promise . reject ( new SilentError (
128- `The "ng ${ this . name } " command requires a name argument to be specified. ` +
129+ `The "ng ${ this . name } " command requires a name argument to be specified eg. ` +
130+ chalk . yellow ( 'ng new [name] ' ) +
129131 `For more details, use "ng help".` ) ) ;
130132 }
131133
You can’t perform that action at this time.
0 commit comments