Prepare for skeleton

This commit is contained in:
crazywhalecc
2025-12-15 17:00:20 +08:00
parent c1c31a730b
commit acd0e2b23a
10 changed files with 447 additions and 18 deletions

View File

@@ -9,6 +9,7 @@ use StaticPHP\Command\BuildTargetCommand;
use StaticPHP\Command\Dev\EnvCommand;
use StaticPHP\Command\Dev\IsInstalledCommand;
use StaticPHP\Command\Dev\ShellCommand;
use StaticPHP\Command\Dev\SkeletonCommand;
use StaticPHP\Command\DoctorCommand;
use StaticPHP\Command\DownloadCommand;
use StaticPHP\Command\ExtractCommand;
@@ -27,12 +28,12 @@ class ConsoleApplication extends Application
public function __construct()
{
parent::__construct('static-php-cli', self::VERSION);
parent::__construct('StaticPHP', self::VERSION);
require_once ROOT_DIR . '/src/bootstrap.php';
// check registry
Registry::checkLoadedRegistries();
// resolve registry
Registry::resolve();
/**
* @var string $name
@@ -59,6 +60,7 @@ class ConsoleApplication extends Application
new ShellCommand(),
new IsInstalledCommand(),
new EnvCommand(),
new SkeletonCommand(),
]);
// add additional commands from registries