5 Commits
Author SHA1 Message Date
Reynold Lariza f250f81753 fixed ps scripts 2025-08-28 22:30:40 +08:00
Reynold Lariza 57eb6182c8 Improve sf-org-info.ps1 user experience by showing help when no parameters provided
- Modified script to automatically display help when run without any parameters
- This prevents the confusing error message that occurred when no default org was set
- Users now get clear usage information instead of a command failure
- Script still works correctly when any parameter is provided (-to, -list, -limits, -ve, -hp)
2025-08-28 21:33:15 +08:00
Reynold Lariza 1ed3836c61 Fix PowerShell scripts identified during comprehensive testing
- Fixed sf-apex-run.ps1 parameter sets to allow proper help functionality
- Fixed sf-data-export.ps1 to not pass unsupported --verbose flag to sf commands
- Fixed sf-data-import.ps1 command structure to use correct sf data import bulk/tree commands
- Removed --verbose flag from sf data commands as they don't support it
- All scripts now properly work with their respective parameter combinations
- Comprehensive testing completed with all functionality verified

Testing results:
 sf-check.ps1 - Working correctly
 sf-org-info.ps1 - Working correctly
 sf-web-open.ps1 - Working correctly
 sf-apex-run.ps1 - Fixed parameter sets, now working
 sf-deploy.ps1 - Working correctly
 sf-dry-run.ps1 - Working correctly
 sf-data-export.ps1 - Fixed --verbose flag issue, now working
 sf-data-import.ps1 - Fixed command structure, now working
 sf-retrieve.ps1 - Working correctly
 sf-test-run.ps1 - Working correctly
 sf-logs-tail.ps1 - Working correctly
 sf-org-create.ps1 - Working correctly
2025-08-28 21:07:00 +08:00
Reynold Lariza 134169a2ee Fix PowerShell parameter conflicts by renaming Verbose to VerboseOutput
- Fixed parameter conflicts in sf-data-export.ps1, sf-data-import.ps1, sf-retrieve.ps1, and sf-test-run.ps1
- Renamed conflicting \ parameter to \ to avoid conflicts with PowerShell's built-in -Verbose common parameter
- Added proper parameter sets to ensure -Help parameter works correctly in all scripts
- Added -hp aliases where needed for consistency across all scripts
- All scripts now properly support help functionality without parameter conflicts

This resolves issues where scripts would fail with 'A parameter with the name Verbose was defined multiple times' error.
2025-08-28 20:58:54 +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