@@ -10,26 +10,29 @@ if (file_exists(dirname(__DIR__, 3) . "/autoload.php")) {
1010$ leafCli = json_decode (file_get_contents (dirname (__DIR__ ) . "/composer.json " ));
1111$ currentVersion = $ leafCli ->version ;
1212
13- $ app = new Symfony \Component \Console \Application ("
13+ $ app = sprout ()->createApp ([
14+ 'name ' => "
1415<info> _ __ ___ _ ___
1516| | ___ __ _ / _| / __| | |_ <comment> $ currentVersion</comment>
1617| |__/ -_) _` | _| | (__| |__ | |
1718|____\___\__,_|_| \___|____|___|</info>
18- " );
19+ " ,
20+ 'version ' => ''
21+ ]);
1922
20- $ app ->add ( new Leaf \Console \CreateCommand );
21- $ app ->add ( new Leaf \Console \UpdateCommand );
22- $ app ->add ( new Leaf \Console \TestCommand );
23- $ app ->add ( new Leaf \Console \TestSetupCommand );
24- $ app ->add ( new Leaf \Console \InstallCommand );
25- $ app ->add ( new Leaf \Console \UninstallCommand );
26- $ app ->add ( new Leaf \Console \ServeCommand );
27- $ app ->add ( new Leaf \Console \DeployCommand );
28- $ app ->add ( new Leaf \Console \InteractCommand );
29- $ app ->add ( new Leaf \Console \RunCommand );
30- $ app ->add ( new Leaf \Console \UICommand );
31- $ app ->add ( new Leaf \Console \ViewBuildCommand );
32- $ app ->add ( new Leaf \Console \ViewDevCommand );
33- $ app ->add ( new Leaf \Console \ViewInstallCommand );
23+ // $app->register( Leaf\Console\CreateCommand::class );
24+ // $app->register( Leaf\Console\UpdateCommand::class );
25+ // $app->register( Leaf\Console\TestCommand::class );
26+ // $app->register( Leaf\Console\TestSetupCommand::class );
27+ // $app->register( Leaf\Console\InstallCommand::class );
28+ // $app->register( Leaf\Console\UninstallCommand::class );
29+ // $app->register( Leaf\Console\ServeCommand::class );
30+ // $app->register( Leaf\Console\DeployCommand::class );
31+ $ app ->register ( Leaf \Console \InteractCommand::class );
32+ // $app->register( Leaf\Console\RunCommand::class );
33+ // $app->register( Leaf\Console\UICommand::class );
34+ // $app->register( Leaf\Console\ViewBuildCommand::class );
35+ // $app->register( Leaf\Console\ViewDevCommand::class );
36+ // $app->register( Leaf\Console\ViewInstallCommand::class );
3437
3538$ app ->run ();
0 commit comments