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:
@@ -8,7 +8,7 @@
|
||||
A user-friendly wrapper around 'sf apex tail log' that provides real-time
|
||||
debug log monitoring with filtering, formatting, and intelligent output colorization.
|
||||
|
||||
.PARAMETER TargetOrg
|
||||
.PARAMETER o
|
||||
Target org username or alias
|
||||
|
||||
.PARAMETER UserId
|
||||
@@ -39,7 +39,7 @@
|
||||
.\sf-logs-tail.ps1
|
||||
.\sf-logs-tail.ps1 -Level DEBUG -Duration 60
|
||||
.\sf-logs-tail.ps1 -Filter "MyClass" -ApexOnly
|
||||
.\sf-logs-tail.ps1 -TargetOrg sandbox -UserId USER123
|
||||
.\sf-logs-tail.ps1 -o sandbox -UserId USER123
|
||||
|
||||
.NOTES
|
||||
This script automatically checks for Salesforce CLI installation and runs
|
||||
@@ -49,7 +49,7 @@
|
||||
#>
|
||||
|
||||
param(
|
||||
[string]$TargetOrg,
|
||||
[string]$o,
|
||||
[string]$UserId,
|
||||
[ValidateSet("ERROR", "WARN", "INFO", "DEBUG", "FINE", "FINER", "FINEST")]
|
||||
[string]$Level,
|
||||
@@ -190,9 +190,9 @@ if ($Duration -lt 1) {
|
||||
$sfArgs = @("apex", "tail", "log")
|
||||
|
||||
# Add optional parameters
|
||||
if ($TargetOrg) {
|
||||
if ($o) {
|
||||
$sfArgs += "--target-org"
|
||||
$sfArgs += $TargetOrg
|
||||
$sfArgs += $o
|
||||
}
|
||||
|
||||
if ($UserId) {
|
||||
@@ -212,8 +212,8 @@ Set-SignalHandlers
|
||||
Write-Host "📡 Starting Debug Log Tail" -ForegroundColor Blue
|
||||
Write-Host "===========================" -ForegroundColor Blue
|
||||
|
||||
if ($TargetOrg) {
|
||||
Write-Host "Target org: $TargetOrg" -ForegroundColor Cyan
|
||||
if ($o) {
|
||||
Write-Host "Target org: $o" -ForegroundColor Cyan
|
||||
}
|
||||
|
||||
if ($UserId) {
|
||||
|
||||
Reference in New Issue
Block a user