mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
refactor: simplify and remove duplicate code across operations files
* Consolidate installation check logic using SettingsManager methods * Simplify component retrieval by delegating to SettingsManager * Add 'all' components shorthand support in installer
This commit is contained in:
@@ -11,7 +11,7 @@ import argparse
|
||||
|
||||
from ..base.installer import Installer
|
||||
from ..core.registry import ComponentRegistry
|
||||
from ..core.config_manager import ConfigManager
|
||||
from ..managers.config_manager import ConfigManager
|
||||
from ..core.validator import Validator
|
||||
from ..utils.ui import (
|
||||
display_header, display_info, display_success, display_error,
|
||||
@@ -137,6 +137,8 @@ def get_components_to_install(args: argparse.Namespace, registry: ComponentRegis
|
||||
|
||||
# Explicit components specified
|
||||
if args.components:
|
||||
if 'all' in args.components:
|
||||
return ["core", "commands", "hooks", "mcp"]
|
||||
return args.components
|
||||
|
||||
# Profile-based selection
|
||||
|
||||
Reference in New Issue
Block a user