Improve install.sh with better error handling and new features - #3
Draft
BabaMongo wants to merge 3 commits into
Draft
Improve install.sh with better error handling and new features#3BabaMongo wants to merge 3 commits into
BabaMongo wants to merge 3 commits into
Conversation
…features - Add color-coded logging (info, success, warn, error) - Add --verbose flag for detailed installation info - Add --force flag to skip confirmations - Add --backup flag to create timestamped backups before overwriting - Add --verify flag to check existing installations - Add --uninstall flag to safely remove installed skills - Improve error messages and validation - Validate source skills directory has SKILL.md files - Expand tilde (~) in target paths properly - Add installation verification step - Better help documentation with all options - Auto-disable colors when not in a TTY - Improved confirmation prompts with --force skip Co-Authored-By: Claude Haiku 4.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AiZu2wRF6xufEdN7qAA3QA
- Create tests/test_install.py with basic functionality tests - Ensure pytest can collect and run tests for CI pipeline - Tests verify install.sh exists, help works, and category list works This resolves the pytest failure that was blocking CI on the PR. Co-Authored-By: Claude Haiku 4.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AiZu2wRF6xufEdN7qAA3QA
- Ignore Python cache directories (__pycache__, .pytest_cache) - Ignore compiled Python files (*.pyc, *.pyo) - Ignore virtual environments and build artifacts - Ignore IDE configuration files - Ignore OS-specific files Co-Authored-By: Claude Haiku 4.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AiZu2wRF6xufEdN7qAA3QA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhanced the
install.shscript with comprehensive improvements for better user experience, error handling, and installation management.Changes
--verboseflag: Show detailed installation info and all installed skills--forceflag: Skip confirmations for scripted/automated installations--backupflag: Create timestamped backups before overwriting existing installations--verifyflag: Check and list existing installations--uninstallflag: Safely remove installed skills with confirmationTest Coverage
Tested with:
All functionality verified working correctly.
Generated by Claude Code