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
This commit is contained in:
reynold
2025-08-28 18:11:08 +08:00
parent d919e5cfb8
commit 628fe95b50
11 changed files with 206 additions and 132 deletions

View File

@@ -26,7 +26,7 @@
.PARAMETER Wait
Wait time in minutes for test execution (default: 10)
.PARAMETER TargetOrg
.PARAMETER o
Target org username or alias (uses default if not specified)
.PARAMETER OutputDir
@@ -42,7 +42,7 @@
.\sf-test-run.ps1 -TestClasses "AccountTest,ContactTest"
.\sf-test-run.ps1 -TestLevel "RunLocalTests" -Coverage
.\sf-test-run.ps1 -TestMethods "AccountTest.testCreate,ContactTest.testUpdate"
.\sf-test-run.ps1 -Suite "AllTests" -Wait 15 -TargetOrg "staging"
.\sf-test-run.ps1 -Suite "AllTests" -Wait 15 -o "staging"
.NOTES
This script automatically checks for Salesforce CLI installation and runs
@@ -65,7 +65,7 @@ param(
[switch]$Coverage,
[int]$Wait = 10,
[string]$TargetOrg,
[string]$o,
[string]$OutputDir,
[switch]$Verbose,
[switch]$Help
@@ -150,10 +150,10 @@ if ($TestClasses) {
}
# Add optional parameters
if ($TargetOrg) {
if ($o) {
$sfArgs += "--target-org"
$sfArgs += $TargetOrg
Write-Host "Target org: $TargetOrg" -ForegroundColor Cyan
$sfArgs += $o
Write-Host "Target org: $o" -ForegroundColor Cyan
}
if ($Wait -ne 10) {