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 1414use DevNet \System \Command \CommandLine ;
1515use DevNet \System \Command \CommandOption ;
1616use DevNet \System \Command \ICommandHandler ;
17- use DevNet \System \Text \StringBuilder ;
1817use DevNet \System \IO \ConsoleColor ;
1918use DevNet \System \IO \Console ;
2019
@@ -39,8 +38,6 @@ public function execute(object $sender, CommandEventArgs $args): void
3938 exit ;
4039 }
4140
42- $ namespace = "Application " ;
43- $ className = "Program " ;
4441 $ basePath = null ;
4542 $ template = $ args ->get ('template ' );
4643 $ help = $ args ->get ('--help ' );
@@ -143,7 +140,12 @@ public function showHelp()
143140 $ list = scandir ($ root . '/templates ' );
144141 }
145142
143+ // remove current and back directory references (. , ..)
144+ array_shift ($ list );
145+ array_shift ($ list );
146+
146147 $ maxLenth = 0 ;
148+ $ metadata = [];
147149 foreach ($ list as $ name ) {
148150 if (file_exists ($ root . '/templates/ ' . $ name . '/composer.json ' )) {
149151 $ json = file_get_contents ($ root . '/templates/ ' . $ name . '/composer.json ' );
You can’t perform that action at this time.
0 commit comments