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:
@@ -9,7 +9,7 @@
|
||||
quick access to org information, limits, and authentication status with
|
||||
clean, formatted output.
|
||||
|
||||
.PARAMETER TargetOrg
|
||||
.PARAMETER o
|
||||
Target org username or alias (uses default if not specified)
|
||||
|
||||
.PARAMETER Limits
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
.EXAMPLE
|
||||
.\sf-org-info.ps1
|
||||
.\sf-org-info.ps1 -TargetOrg "production"
|
||||
.\sf-org-info.ps1 -o "myorg" -Limits -Verbose
|
||||
.\sf-org-info.ps1 -Limits
|
||||
.\sf-org-info.ps1 -ListOrgs
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#>
|
||||
|
||||
param(
|
||||
[string]$TargetOrg,
|
||||
[string]$o,
|
||||
[switch]$Limits,
|
||||
[switch]$ListOrgs,
|
||||
[switch]$Verbose,
|
||||
@@ -132,10 +132,10 @@ if ($ListOrgs) {
|
||||
$sfArgs = @("org", "display")
|
||||
|
||||
# Add target org if specified
|
||||
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
|
||||
}
|
||||
|
||||
# Add verbose flag if requested
|
||||
@@ -158,9 +158,9 @@ if ($Limits) {
|
||||
# Build limits command
|
||||
$limitsArgs = @("org", "list", "limits")
|
||||
|
||||
if ($TargetOrg) {
|
||||
if ($o) {
|
||||
$limitsArgs += "--target-org"
|
||||
$limitsArgs += $TargetOrg
|
||||
$limitsArgs += $o
|
||||
}
|
||||
|
||||
$success = Invoke-SafeSfCommand $limitsArgs
|
||||
@@ -186,9 +186,9 @@ if ($Verbose) {
|
||||
Write-Host "👤 Current User Info:" -ForegroundColor Yellow
|
||||
$userArgs = @("org", "display", "user")
|
||||
|
||||
if ($TargetOrg) {
|
||||
if ($o) {
|
||||
$userArgs += "--target-org"
|
||||
$userArgs += $TargetOrg
|
||||
$userArgs += $o
|
||||
}
|
||||
|
||||
$success = Invoke-SafeSfCommand $userArgs
|
||||
|
||||
Reference in New Issue
Block a user