@@ -41,7 +41,7 @@ protected function configure()
4141 protected function scaffold ($ input , $ output )
4242 {
4343 $ helper = $ this ->getHelper ("question " );
44- $ question = new ChoiceQuestion ("Please pick a preset " , ["leaf " , "leaf mvc " , "leaf api " , "skeleton " ], "leaf " );
44+ $ question = new ChoiceQuestion ("<info>* Please pick a preset</info> " , ["leaf " , "leaf mvc " , "leaf api " , "skeleton " ], "leaf " );
4545
4646 $ question ->setMultiselect (false );
4747 $ question ->setErrorMessage ("Please select a valid option " );
@@ -52,7 +52,7 @@ protected function scaffold($input, $output)
5252 protected function scaffoldVersion ($ input , $ output )
5353 {
5454 $ helper = $ this ->getHelper ("question " );
55- $ question = new ChoiceQuestion ("Select a version to use " , ["v3 " , "v2 " ], "v3 " );
55+ $ question = new ChoiceQuestion ("<info>* Select a version to use</info> " , ["v3 " , "v2 " ], "v3 " );
5656
5757 $ question ->setMultiselect (false );
5858 $ question ->setErrorMessage ("Please select a valid option " );
@@ -63,14 +63,12 @@ protected function scaffoldVersion($input, $output)
6363 protected function leaf ($ input , $ output , $ directory )
6464 {
6565 if ($ this ->version === "v3 " ) {
66- $ output ->writeln ("<comment>Using leaf v3</comment> \n" );
6766 \Leaf \FS ::superCopy (__DIR__ . "/themes/leaf3 " , $ directory );
6867 } else {
69- $ output ->writeln ("<comment>Using leaf v2 LTS</comment> \n" );
7068 \Leaf \FS ::superCopy (__DIR__ . "/themes/leaf2 " , $ directory );
7169 }
7270
73- $ output ->writeln (basename ($ directory ) . " created successfully \n" );
71+ $ output ->writeln (" <comment> - </comment> " . basename ($ directory ) . " created successfully \n" );
7472
7573 $ composer = $ this ->findComposer ();
7674
@@ -136,7 +134,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
136134 }
137135
138136 $ name = $ input ->getArgument ('project-name ' );
139-
140137 $ directory = $ name !== '. ' ? getcwd () . '/ ' . $ name : getcwd ();
141138
142139 if (!$ input ->getOption ('force ' )) {
@@ -147,10 +144,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
147144 $ this ->getVersion ($ input , $ output );
148145
149146 $ output ->writeln (
150- "Creating \""
147+ "\n <comment> - </comment> Creating \""
151148 . basename ($ directory ) . "\" in <info>./ "
152149 . basename (dirname ($ directory )) .
153- "</info> using <info> $ preset@ " . $ this ->version . "</info>. \n "
150+ "</info> using <info> $ preset@ " . $ this ->version . "</info>. "
154151 );
155152
156153 if ($ preset === "leaf " ) {
@@ -246,20 +243,21 @@ protected function getPreset(InputInterface $input, $output)
246243 if ($ input ->getOption ("basic " )) {
247244 return "leaf " ;
248245 }
249-
246+
250247 if ($ input ->getOption ("api " )) {
251248 return "api " ;
252249 }
253-
250+
254251 if ($ input ->getOption ("mvc " )) {
255252 return "mvc " ;
256253 }
257-
254+
258255 if ($ input ->getOption ("skeleton " )) {
259256 return "skeleton " ;
260257 }
261-
258+
262259 $ preset = $ this ->scaffold ($ input , $ output );
260+ $ output ->writeln ("\n<comment> - </comment>Using preset $ preset \n" );
263261
264262 if ($ preset == "leaf api " ) {
265263 return "api " ;
0 commit comments