Commit Graph

10 Commits

Author SHA1 Message Date
reynold
ca98742891 Fix macOS compatibility: Add portable timeout helper
- Add utils.sh with cross-platform timeout functions for macOS compatibility
- Fix sf-logs-tail to use portable_timeout instead of GNU timeout command
- Fix test-all-wrappers.sh to use portable_timeout_seconds for testing
- Update README.md with macOS compatibility documentation

The timeout command is not available by default on macOS, causing
sf-logs-tail and test scripts to fail. The new utils.sh provides
fallback timeout functionality that works on Linux, macOS with/without
GNU coreutils, maintaining exit code 124 compatibility.
2025-08-28 21:08:58 +08:00
Reynold Lariza
159ede3794 Standardize verbose parameter from -vb to -ve across all scripts
- Update all Bash scripts (sf-check, sf-org-info, sf-data-export, sf-data-import, sf-logs-tail) to use -ve instead of -vb
- Update all PowerShell scripts (sf-org-info.ps1, sf-apex-run.ps1, sf-check.ps1, sf-data-export.ps1, sf-data-import.ps1) to use -ve instead of -vb
- Fix PowerShell parameter conflicts with built-in -Verbose parameter
- Update README.md, TESTING.md, and OPTION_CONSISTENCY.md documentation to reflect -ve parameter
- Update test scripts (test-wrapper-suite.sh, test-wrapper-suite.ps1, test-all-wrappers.sh) to use -ve
- Maintain cross-platform consistency with two-character option scheme
- Fix Unicode display issues in PowerShell output with UTF-8 encoding
2025-08-28 20:47:46 +08:00
reynold
312727a905 Complete PowerShell test suite implementation with comprehensive documentation
🎯 PowerShell Testing Suite Completed:

 Cross-Platform Test Scripts:
  - quick-test.ps1: PowerShell equivalent of essential validation
  - test-wrapper-suite.ps1: Full comprehensive testing suite
  - 100% feature parity with Bash versions
  - PowerShell-native colored output and logging
  - Cross-platform compatibility (Windows, macOS, Linux)

🧪 Test Features:
  - Identical test coverage to Bash versions
  - Same test structure and validation logic
  - PowerShell-native error handling and object pipeline
  - Compatible with PowerShell 5.1+ and PowerShell Core 6+
  - Same output structure for compatibility

📚 Complete Documentation Updates:
  - TESTING.md: Comprehensive PowerShell testing instructions
  - README.md: Added testing section with both Bash and PowerShell examples
  - Platform testing matrix and troubleshooting guides
  - Cross-platform execution examples and prerequisites

🚀 Production Ready Features:
  - Full cross-platform test validation
  - Consistent two-character option scheme
  - Professional documentation and user guidance
  - Ready for Windows, macOS, and Linux environments

The SF CLI wrapper toolkit now offers complete cross-platform testing capabilities with equivalent Bash and PowerShell test suites, ensuring robust validation across all supported platforms.
2025-08-28 18:56:28 +08:00
reynold
11f3b5bd86 Fix README to use two-character options consistently throughout
MAJOR CLEANUP: Fixed all inconsistencies in README documentation

Fixed sections:
- sf-deploy: -o,-s,-d,-t → -to,-sr,-dr,-ts
- sf-dry-run: Updated to match sf-deploy options
- sf-web-open: -o,-p,-U → -to,-pt,-ur
- sf-check: -v,-h → -vb,-hp
- sf-logs-tail: -o → -to
- All example command lines in workflows section
- Automatic Environment Verification examples
- Common Workflows examples

The README now consistently uses two-character options throughout:
 Help sections show proper option syntax (-to, -sr, -dr, etc.)
 All examples use the new two-character scheme
 Error message examples updated
 Workflow examples updated
 No more confusing mix of old/new option styles

Documentation is now fully aligned with the updated wrapper scripts.
2025-08-28 18:34:12 +08:00
reynold
3e24d62fb2 Remove outdated Windows PowerShell examples section from README
- Removed Windows PowerShell Examples section that contained old command patterns
- Replaced with concise Quick Start Examples using current two-character options
- All examples now reflect the modern command structure and syntax
- Maintains consistency with updated wrapper script functionality
2025-08-28 18:21:49 +08:00
reynold
628fe95b50 Implement innovative two-character option scheme
- Replace single-character options with memorable two-character alternatives
- Based on syllable mapping: -to (target-org), -qy (query), -fm (format), etc.
- Updated all bash and PowerShell scripts with consistent options
- Added comprehensive documentation and examples to README.md
- Maintains backward compatibility with long options
- More intuitive and self-documenting than traditional CLI options
2025-08-28 18:11:08 +08:00
reynold
d919e5cfb8 updated README 2025-08-28 16:42:15 +08:00
reynold
747aa90d26 added addl wrappers 2025-08-28 16:34:16 +08:00
reynold
a385484a69 updated scripts 2025-08-28 15:51:17 +08:00
reynold
0b2e2f619f first commit 2025-08-28 15:14:17 +08:00