mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
Added PyPI v3 setup and readme updates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
SuperClaude Operations Module
|
||||
|
||||
This module contains all SuperClaude management operations that can be
|
||||
executed through the unified CLI hub (SuperClaude.py).
|
||||
executed through the unified CLI hub (SuperClaude).
|
||||
|
||||
Each operation module should implement:
|
||||
- register_parser(subparsers): Register CLI arguments for the operation
|
||||
|
||||
@@ -40,12 +40,12 @@ def register_parser(subparsers, global_parser=None) -> argparse.ArgumentParser:
|
||||
description="Create, list, restore, and manage SuperClaude installation backups",
|
||||
epilog="""
|
||||
Examples:
|
||||
SuperClaude.py backup --create # Create new backup
|
||||
SuperClaude.py backup --list --verbose # List available backups (verbose)
|
||||
SuperClaude.py backup --restore # Interactive restore
|
||||
SuperClaude.py backup --restore backup.tar.gz # Restore specific backup
|
||||
SuperClaude.py backup --info backup.tar.gz # Show backup information
|
||||
SuperClaude.py backup --cleanup --force # Clean up old backups (forced)
|
||||
SuperClaude backup --create # Create new backup
|
||||
SuperClaude backup --list --verbose # List available backups (verbose)
|
||||
SuperClaude backup --restore # Interactive restore
|
||||
SuperClaude backup --restore backup.tar.gz # Restore specific backup
|
||||
SuperClaude backup --info backup.tar.gz # Show backup information
|
||||
SuperClaude backup --cleanup --force # Clean up old backups (forced)
|
||||
""",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
parents=parents
|
||||
|
||||
@@ -39,11 +39,11 @@ def register_parser(subparsers, global_parser=None) -> argparse.ArgumentParser:
|
||||
description="Install SuperClaude Framework with various options and profiles",
|
||||
epilog="""
|
||||
Examples:
|
||||
SuperClaude.py install # Interactive installation
|
||||
SuperClaude.py install --quick --dry-run # Quick installation (dry-run)
|
||||
SuperClaude.py install --profile developer # Developer profile
|
||||
SuperClaude.py install --components core mcp # Specific components
|
||||
SuperClaude.py install --verbose --force # Verbose with force mode
|
||||
SuperClaude install # Interactive installation
|
||||
SuperClaude install --quick --dry-run # Quick installation (dry-run)
|
||||
SuperClaude install --profile developer # Developer profile
|
||||
SuperClaude install --components core mcp # Specific components
|
||||
SuperClaude install --verbose --force # Verbose with force mode
|
||||
""",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
parents=parents
|
||||
@@ -121,7 +121,7 @@ def validate_system_requirements(validator: Validator, component_names: List[str
|
||||
|
||||
# Provide additional guidance
|
||||
print(f"\n{Colors.CYAN}💡 Installation Help:{Colors.RESET}")
|
||||
print(" Run 'SuperClaude.py install --diagnose' for detailed system diagnostics")
|
||||
print(" Run 'SuperClaude install --diagnose' for detailed system diagnostics")
|
||||
print(" and step-by-step installation instructions.")
|
||||
|
||||
return False
|
||||
@@ -321,12 +321,12 @@ def run_system_diagnostics(validator: Validator) -> None:
|
||||
|
||||
print(f"\n{Colors.BLUE}Next steps:{Colors.RESET}")
|
||||
if all_passed:
|
||||
print(" 1. Run 'SuperClaude.py install' to proceed with installation")
|
||||
print(" 1. Run 'SuperClaude install' to proceed with installation")
|
||||
print(" 2. Choose your preferred installation mode (quick, minimal, or custom)")
|
||||
else:
|
||||
print(" 1. Install missing dependencies using the commands above")
|
||||
print(" 2. Restart your terminal after installing tools")
|
||||
print(" 3. Run 'SuperClaude.py install --diagnose' again to verify")
|
||||
print(" 3. Run 'SuperClaude install --diagnose' again to verify")
|
||||
|
||||
|
||||
def perform_installation(components: List[str], args: argparse.Namespace) -> bool:
|
||||
|
||||
@@ -38,10 +38,10 @@ def register_parser(subparsers, global_parser=None) -> argparse.ArgumentParser:
|
||||
description="Uninstall SuperClaude Framework components",
|
||||
epilog="""
|
||||
Examples:
|
||||
SuperClaude.py uninstall # Interactive uninstall
|
||||
SuperClaude.py uninstall --components core # Remove specific components
|
||||
SuperClaude.py uninstall --complete --force # Complete removal (forced)
|
||||
SuperClaude.py uninstall --keep-backups # Keep backup files
|
||||
SuperClaude uninstall # Interactive uninstall
|
||||
SuperClaude uninstall --components core # Remove specific components
|
||||
SuperClaude uninstall --complete --force # Complete removal (forced)
|
||||
SuperClaude uninstall --keep-backups # Keep backup files
|
||||
""",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
parents=parents
|
||||
@@ -484,7 +484,7 @@ def run(args: argparse.Namespace) -> int:
|
||||
print(f"\n{Colors.CYAN}Uninstall complete:{Colors.RESET}")
|
||||
print(f"SuperClaude has been removed from {args.install_dir}")
|
||||
if not args.complete:
|
||||
print(f"You can reinstall anytime using 'SuperClaude.py install'")
|
||||
print(f"You can reinstall anytime using 'SuperClaude install'")
|
||||
|
||||
return 0
|
||||
else:
|
||||
|
||||
@@ -40,10 +40,10 @@ def register_parser(subparsers, global_parser=None) -> argparse.ArgumentParser:
|
||||
description="Update SuperClaude Framework components to latest versions",
|
||||
epilog="""
|
||||
Examples:
|
||||
SuperClaude.py update # Interactive update
|
||||
SuperClaude.py update --check --verbose # Check for updates (verbose)
|
||||
SuperClaude.py update --components core mcp # Update specific components
|
||||
SuperClaude.py update --backup --force # Create backup before update (forced)
|
||||
SuperClaude update # Interactive update
|
||||
SuperClaude update --check --verbose # Check for updates (verbose)
|
||||
SuperClaude update --components core mcp # Update specific components
|
||||
SuperClaude update --backup --force # Create backup before update (forced)
|
||||
""",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
parents=parents
|
||||
@@ -354,7 +354,7 @@ def run(args: argparse.Namespace) -> int:
|
||||
# Check if SuperClaude is installed
|
||||
if not check_installation_exists(args.install_dir):
|
||||
logger.error(f"SuperClaude installation not found in {args.install_dir}")
|
||||
logger.info("Use 'SuperClaude.py install' to install SuperClaude first")
|
||||
logger.info("Use 'SuperClaude install' to install SuperClaude first")
|
||||
return 1
|
||||
|
||||
# Create component registry
|
||||
|
||||
Reference in New Issue
Block a user