'generate', 'label' => 'Generate', 'cmd' => 'hexo generate'], ['id' => 'clean', 'label' => 'Clean', 'cmd' => 'hexo clean'], ['id' => 'deploy', 'label' => 'Deploy', 'cmd' => 'hexo deploy'], ['id' => 'version', 'label' => 'Hexo version','cmd' => 'hexo version'], ]; } public static function detectFromPath(string $path): bool { return file_exists($path . '/_config.yml') && (is_dir($path . '/source') || is_dir($path . '/themes')); } }