argument('identifier'); try { // 템플릿 디렉토리 스캔 및 로드 $this->templateManager->loadTemplates(); // 템플릿 존재 확인 $template = $this->templateRepository->findByIdentifier($identifier); if (! $template) { $this->error('❌ '.__('templates.commands.activate.not_installed', ['template' => $identifier])); return Command::FAILURE; } // 템플릿이 활성화되어 있는지 확인 if ($template->status !== 'active') { $this->warn('⚠️ '.__('templates.commands.deactivate.not_active', ['template' => $identifier])); return Command::FAILURE; } // 템플릿 비활성화 $result = $this->templateManager->deactivateTemplate($identifier); if ($result) { // 성공 메시지 $this->info('✅ '.__('templates.commands.deactivate.success', ['template' => $identifier])); // 경고 메시지 $this->warn('⚠️ '.__('templates.commands.deactivate.no_active_warning', [ 'type' => __('templates.types.'.$template->type), ])); Log::info(__('templates.commands.deactivate.success', ['template' => $identifier])); return Command::SUCCESS; } return Command::FAILURE; } catch (\Exception $e) { $this->error('❌ '.$e->getMessage()); Log::error('템플릿 비활성화 실패', [ 'template' => $identifier, 'error' => $e->getMessage(), ]); return Command::FAILURE; } } }