v7.0.0-beta.4 release
This commit is contained in:
@@ -13,7 +13,8 @@ class ListModuleCommand extends Command
|
||||
* The name and signature of the console command.
|
||||
*/
|
||||
protected $signature = 'module:list
|
||||
{--status= : 상태로 필터 (installed, uninstalled, active, inactive)}';
|
||||
{--status= : 상태로 필터 (installed, uninstalled, active, inactive)}
|
||||
{--hidden : 숨김(hidden=true) 모듈도 함께 출력}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -39,6 +40,7 @@ class ListModuleCommand extends Command
|
||||
$this->moduleManager->loadModules();
|
||||
|
||||
$statusFilter = $this->option('status');
|
||||
$includeHidden = (bool) $this->option('hidden');
|
||||
|
||||
// 상태 필터 검증
|
||||
if ($statusFilter && ! in_array($statusFilter, ['installed', 'uninstalled', 'active', 'inactive'])) {
|
||||
@@ -58,6 +60,11 @@ class ListModuleCommand extends Command
|
||||
|
||||
// 설치된 모듈 추가
|
||||
foreach ($installedModules as $identifier => $module) {
|
||||
// 숨김 필터: --hidden 미지정 시 hidden=true 모듈 제외
|
||||
if (! $includeHidden && ! empty($module['hidden'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 상태 필터
|
||||
if ($statusFilter) {
|
||||
if ($statusFilter === 'uninstalled') {
|
||||
@@ -86,6 +93,11 @@ class ListModuleCommand extends Command
|
||||
// 미설치 모듈 추가
|
||||
if (! $statusFilter || $statusFilter === 'uninstalled') {
|
||||
foreach ($uninstalledModules as $identifier => $module) {
|
||||
// 숨김 필터: --hidden 미지정 시 hidden=true 모듈 제외
|
||||
if (! $includeHidden && ! empty($module['hidden'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 상태 필터 (uninstalled 또는 필터 없음)
|
||||
if ($statusFilter && $statusFilter !== 'uninstalled') {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user