* @Link https://gitee.com/xmo/MineAdmin */ declare(strict_types=1); namespace Builder\Command; use Hyperf\Command\Annotation\Command; use Builder\MineCommand; /** * Class MineAdmin * @package System\Command */ #[Command] class MineAdmin extends MineCommand { protected ?string $name = 'mine'; public function configure() { parent::configure(); // TODO: Change the autogenerated stub } /** * Handle the current command. */ public function handle() { $result = shell_exec('php ' . BASE_PATH . '/bin/hyperf.php | grep mine'); $this->line($this->getInfo(), 'comment'); $this->line(preg_replace('/\s+Builder\s+/', '', $result), 'info'); } }