File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22 "name" : " leafs/cli" ,
33 "description" : " A simple command line tool for installing and interacting with your leaf apps" ,
44 "homepage" : " https://cli.leafphp.dev" ,
5- "version" : " v4.1" ,
5+ "version" : " v4.1.1 " ,
66 "keywords" : [
77 " leaf" ,
88 " php" ,
Original file line number Diff line number Diff line change @@ -180,7 +180,14 @@ protected function handle(): int
180180 'message ' => 'Select a view engine ' ,
181181 'default ' => 0 ,
182182 'choices ' => [
183- ['title ' => 'Blade + Alpine ' , 'value ' => 'tailwind ' ],
183+ [
184+ 'title ' => 'Default ' ,
185+ 'value ' => 'default ' ,
186+ 'disabled ' => function ($ answers ) {
187+ return $ answers ['auth ' ] ?? false ;
188+ }
189+ ],
190+ ['title ' => 'Blade + Tailwind ' , 'value ' => 'tailwind ' ],
184191 ['title ' => 'React JS ' , 'value ' => 'react ' ],
185192 ['title ' => 'Vue JS ' , 'value ' => 'vue ' ],
186193 ['title ' => 'Svelte ' , 'value ' => 'svelte ' ],
@@ -202,7 +209,7 @@ protected function handle(): int
202209
203210 $ extraCommands = ["cd \"$ directory \"" ];
204211
205- if (isset ($ extraOptions ['view ' ])) {
212+ if (isset ($ extraOptions ['view ' ]) && $ extraOptions [ ' view ' ] !== ' default ' ) {
206213 $ extraCommands [] = 'php leaf view:install -- ' . $ extraOptions ['view ' ];
207214 }
208215
You can’t perform that action at this time.
0 commit comments