refactor(cli)!: hard-cut legacy scripts and standardize console runtime
- remove legacy bin/module-*.php and bin/doctor.php entry scripts - move module/doctor execution into class-based runners under lib/Console - add stable JSON output for doctor and module:sync - introduce bin/dev for init/up/down/logs/console/qa workflow - update DI wiring, phpstan scan config, tests, and docs to new CLI contract
This commit is contained in:
22
lib/Console/Runner/Doctor/DoctorRunnerInterface.php
Normal file
22
lib/Console/Runner/Doctor/DoctorRunnerInterface.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MintyPHP\Console\Runner\Doctor;
|
||||
|
||||
interface DoctorRunnerInterface
|
||||
{
|
||||
/**
|
||||
* @return array{
|
||||
* command: string,
|
||||
* status: string,
|
||||
* checks: list<array{status: string, name: string, message: string}>,
|
||||
* ok_count: int,
|
||||
* warn_count: int,
|
||||
* fail_count: int,
|
||||
* exit_code: int,
|
||||
* duration_ms: int
|
||||
* }
|
||||
*/
|
||||
public function run(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user