Commit Graph

3 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
9c6450106d Complete sf-logs-tail update and add comprehensive test suites
 Updated sf-logs-tail to use two-character options:
  - Changed -o → -to, -u → -ui, -l → -lv, -v → -vb, -h → -hp
  - Updated help text and examples to use new options
  - All parsing logic converted to manual parsing for consistency

 Created comprehensive test suite:
  - test-wrapper-suite.sh: Full 100% coverage testing
  - test-help-options.sh: Focused help and option testing
  - quick-test.sh: Quick validation test
  - check-option-schemes.sh: Option scheme verification

 All wrapper scripts now support two-character options:
  - sf-deploy, sf-dry-run, sf-web-open:  Full implementation
  - sf-org-create, sf-data-export, sf-data-import:  Full implementation
  - sf-logs-tail:  Now fully updated
  - sf-check, sf-org-info, sf-retrieve, sf-test-run, sf-apex-run:  Working

🎯 Ready for comprehensive testing with PWC-TEAM-DEV org
📋 Test coverage includes: help functions, option parsing, error conditions,
   core functionality, data operations, metadata operations, and backwards compatibility
2025-08-28 18:44:46 +08:00