File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -439,20 +439,22 @@ public static function postCreateProjectCmd($event) {
439
439
foreach ($ suggestions as $ i => $ suggestion ) {
440
440
441
441
// write each suggestion
442
- Console::writeLine ($ i .": " .$ suggestion , true );
442
+ $ num = $ i + 1 ;
443
+ Console::writeLine ($ num .": " .$ suggestion , true );
443
444
444
445
}
445
446
446
447
// prompt for input on the suggestions
447
448
$ prompt = "choose an option or hit return to skip: " ;
448
449
$ options = "(ex. 1) " ;
449
450
$ input = Console::promptInput ($ prompt ,$ options );
451
+ $ result = (int )$ input - 1 ;
450
452
451
- if (isset ($ suggestions [$ input ])) {
453
+ if (isset ($ suggestions [$ result ])) {
452
454
453
455
Console::writeLine ("" );
454
456
$ f = new Fetch ();
455
- $ result = $ f ->fetchStarterKit ($ suggestions [$ input ]);
457
+ $ result = $ f ->fetchStarterKit ($ suggestions [$ result ]);
456
458
457
459
if ($ result ) {
458
460
You can’t perform that action at this time.
0 commit comments