Thank you for your interest in contributing! π
-
Create for All Platforms
- Windows:
scripts/windows/script-name.ps1 - Linux:
scripts/linux/script-name.sh - macOS:
scripts/macos/script-name.zsh
- Windows:
-
Ensure Functional Parity
- All versions must provide the same functionality
- Handle platform-specific features gracefully
- Document any unavoidable differences
-
Follow Style Guide
- Include emoji and colored output
- Implement idempotent behavior
- Add help/usage information (
-hor--help) - Use English for all text
- Include proper error handling
-
Testing
- Test on the target platform
- Verify idempotency (run twice, check results)
- Test with invalid inputs
- Check exit codes
-
Documentation
- Update README.md with script description
- Update CHANGELOG.md
- Include usage examples in help output
Before submitting:
- Works on target platform(s)
- Idempotent behavior verified
- Consistent naming across platforms
- Colorful output with emoji
- Help/usage information included
- Error handling implemented
- English language only
- README.md updated
- CHANGELOG.md updated
- All platform versions updated
Use Conventional Commits:
feat: add new backup script for all platforms
fix: correct error handling in network-check script
docs: update README with new script examples
refactor: improve color helper functions
- Create a feature branch:
git checkout -b feature/script-name - Make your changes
- Test on all applicable platforms
- Update documentation
- Commit with conventional commit messages
- Push and create a pull request
- Wait for review
Use these consistently:
- β Success: Green
- β Error: Red
β οΈ Warning: Yellow- βΉοΈ Info: Cyan/Blue
- π Note: Magenta
- π Action: Bold/Bright
# Header/Shebang
# Description
# Parameters
# Helper Functions
# Main Logic
# Error Handling
- Only comment when clarification is needed
- Keep comments concise
- Use English
When reporting issues:
- Specify the platform (Windows/Linux/macOS)
- Include the script name and version
- Provide steps to reproduce
- Include error messages
- Describe expected vs actual behavior
Have ideas for new scripts? Open an issue with:
- Description of the script's purpose
- Expected functionality
- Use cases
- Platform considerations
- Be respectful and inclusive
- Provide constructive feedback
- Focus on the code, not the person
- Help others learn and grow
Open an issue for questions or discussions!
Happy scripting! π