@@ -6,6 +6,7 @@ var SilentError = require('silent-error');
66var validProjectName = require ( 'ember-cli/lib/utilities/valid-project-name' ) ;
77var normalizeBlueprint = require ( 'ember-cli/lib/utilities/normalize-blueprint-option' ) ;
88var GitInit = require ( '../tasks/git-init' ) ;
9+ var LinkCli = require ( '../tasks/link-cli' ) ;
910
1011module . exports = Command . extend ( {
1112 name : 'init' ,
@@ -17,6 +18,7 @@ module.exports = Command.extend({
1718 { name : 'dry-run' , type : Boolean , default : false , aliases : [ 'd' ] } ,
1819 { name : 'verbose' , type : Boolean , default : false , aliases : [ 'v' ] } ,
1920 { name : 'blueprint' , type : String , aliases : [ 'b' ] } ,
21+ { name : 'link-cli' , type : Boolean , default : false , aliases : [ 'lc' ] } ,
2022 { name : 'skip-npm' , type : Boolean , default : false , aliases : [ 'sn' ] } ,
2123 { name : 'skip-bower' , type : Boolean , default : true , aliases : [ 'sb' ] } ,
2224 { name : 'name' , type : String , default : '' , aliases : [ 'n' ] } ,
@@ -57,6 +59,14 @@ module.exports = Command.extend({
5759 } ) ;
5860 }
5961
62+ if ( commandOptions . linkCli ) {
63+ var linkCli = new LinkCli ( {
64+ ui : this . ui ,
65+ analytics : this . analytics ,
66+ project : this . project
67+ } ) ;
68+ }
69+
6070 if ( ! commandOptions . skipNpm ) {
6171 var npmInstall = new this . tasks . NpmInstall ( {
6272 ui : this . ui ,
@@ -109,6 +119,14 @@ module.exports = Command.extend({
109119 return gitInit . run ( commandOptions , rawArgs ) ;
110120 }
111121 } . bind ( this ) )
122+ . then ( function ( ) {
123+ if ( commandOptions . linkCli ) {
124+ return linkCli . run ( {
125+ verbose : commandOptions . verbose ,
126+ optional : false
127+ } ) ;
128+ }
129+ } )
112130 . then ( function ( ) {
113131 if ( ! commandOptions . skipNpm ) {
114132 return npmInstall . run ( {
0 commit comments