You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`The ${input('--v1')} and ${input('--v2')} flags have been removed.\n`+
175
-
`Use the ${input('--type')} option. (see ${input('ionic start --help')})`
176
-
);
177
-
}
178
-
179
-
if(options['app-name']){
180
-
this.env.log.warn(`The ${input('--app-name')} option has been removed. Use the ${input('name')} argument with double quotes: e.g. ${input('ionic start "My App"')}`);
181
-
}
182
-
183
-
if(options['display-name']){
184
-
this.env.log.warn(`The ${input('--display-name')} option has been removed. Use the ${input('name')} argument with double quotes: e.g. ${input('ionic start "My App"')}`);
185
-
}
186
-
187
-
if(options['bundle-id']){
188
-
this.env.log.warn(`The ${input('--bundle-id')} option has been deprecated. Please use ${input('--package-id')}.`);
189
-
options['package-id']=options['bundle-id'];
190
-
}
191
145
192
146
if(appflowId){
193
147
if(!this.env.session.isLoggedIn()){
@@ -228,6 +182,92 @@ Use the ${input('--type')} option to start projects using older versions of Ioni
228
182
}
229
183
}
230
184
185
+
if(!inputs[1]){
186
+
if(this.env.flags.interactive){
187
+
this.env.log.nl();
188
+
this.env.log.msg(
189
+
`${strong(`Let's pick the perfect starter template! ${emoji('💪','')}`)}\n`+
190
+
`Starter templates are ready-to-go Ionic apps that come packed with everything you need to build your app. To bypass this prompt next time, supply ${input('template')}, the second argument to ${input('ionic start')}.\n\n`
message: 'You are already in an Ionic project directory. Do you really want to start another project here?',
232
+
default: false,
233
+
});
234
+
235
+
if(!confirm){
236
+
this.env.log.info('Not starting project within existing project.');
237
+
thrownewFatalException();
238
+
}
239
+
}
240
+
241
+
awaitthis.validateProjectType(projectType);
242
+
243
+
if(cloned){
244
+
if(!options['git']){
245
+
this.env.log.warn(`The ${input('--no-git')} option has no effect when cloning apps. Git must be used.`);
246
+
}
247
+
248
+
options['git']=true;
249
+
}
250
+
251
+
if(options['v1']||options['v2']){
252
+
thrownewFatalException(
253
+
`The ${input('--v1')} and ${input('--v2')} flags have been removed.\n`+
254
+
`Use the ${input('--type')} option. (see ${input('ionic start --help')})`
255
+
);
256
+
}
257
+
258
+
if(options['app-name']){
259
+
this.env.log.warn(`The ${input('--app-name')} option has been removed. Use the ${input('name')} argument with double quotes: e.g. ${input('ionic start "My App"')}`);
260
+
}
261
+
262
+
if(options['display-name']){
263
+
this.env.log.warn(`The ${input('--display-name')} option has been removed. Use the ${input('name')} argument with double quotes: e.g. ${input('ionic start "My App"')}`);
264
+
}
265
+
266
+
if(options['bundle-id']){
267
+
this.env.log.warn(`The ${input('--bundle-id')} option has been deprecated. Please use ${input('--package-id')}.`);
@@ -245,48 +285,14 @@ Use the ${input('--type')} option to start projects using older versions of Ioni
245
285
246
286
if(cloned){
247
287
this.schema={
248
-
cloned,
288
+
cloned: true,
249
289
url: inputs[1],
250
290
projectId,
251
291
projectDir,
252
292
};
253
293
}else{
254
-
if(!inputs[1]){
255
-
if(this.env.flags.interactive){
256
-
this.env.log.nl();
257
-
this.env.log.msg(
258
-
`${strong(`Let's pick the perfect starter template! ${emoji('💪','')}`)}\n`+
259
-
`Starter templates are ready-to-go Ionic apps that come packed with everything you need to build your app. To bypass this prompt next time, supply ${input('template')}, the second argument to ${input('ionic start')}.\n\n`
0 commit comments