From 4020d881f1ac4e20c04e23931e87da4c627ed3ca Mon Sep 17 00:00:00 2001 From: reynold Date: Thu, 28 Aug 2025 22:57:07 +0800 Subject: [PATCH] fix: resolve sf-logs-tail utils.sh dependency by reorganizing directory structure - Renamed misc/ directory to utils/ for better organization - Updated sf-logs-tail to source utils/utils.sh correctly - This fixes the 'No such file or directory' error when running sf-logs-tail - The utils directory contains cross-platform timeout functions needed for macOS compatibility --- sf-logs-tail | 8 ++++---- {misc => utils}/OPTION_CONSISTENCY.md | 0 {misc => utils}/TESTING.md | 0 {misc => utils}/check-option-schemes.sh | 0 {misc => utils}/export.csv | 0 {misc => utils}/quick-test.ps1 | 0 {misc => utils}/quick-test.sh | 0 {misc => utils}/test-all-wrappers.sh | 0 {misc => utils}/test-help-options.sh | 0 {misc => utils}/test-wrapper-suite.ps1 | 0 {misc => utils}/test-wrapper-suite.sh | 0 {misc => utils}/utils.sh | 0 12 files changed, 4 insertions(+), 4 deletions(-) rename {misc => utils}/OPTION_CONSISTENCY.md (100%) rename {misc => utils}/TESTING.md (100%) rename {misc => utils}/check-option-schemes.sh (100%) rename {misc => utils}/export.csv (100%) rename {misc => utils}/quick-test.ps1 (100%) rename {misc => utils}/quick-test.sh (100%) rename {misc => utils}/test-all-wrappers.sh (100%) rename {misc => utils}/test-help-options.sh (100%) rename {misc => utils}/test-wrapper-suite.ps1 (100%) rename {misc => utils}/test-wrapper-suite.sh (100%) rename {misc => utils}/utils.sh (100%) diff --git a/sf-logs-tail b/sf-logs-tail index 909d091..a83cbcf 100755 --- a/sf-logs-tail +++ b/sf-logs-tail @@ -4,7 +4,7 @@ # Provides real-time debug log monitoring with filtering and formatting # Source utilities for cross-platform compatibility -source "$(dirname "$0")/utils.sh" +source "$(dirname "$0")/utils/utils.sh" # Color codes for output formatting readonly RED='\033[0;31m' @@ -35,9 +35,9 @@ show_usage() { echo " -hp Show this help message" echo "" echo "EXAMPLES:" - echo " sf-logs-tail # Tail logs for default org" - echo " sf-logs-tail -lv DEBUG -dr 60 # Debug level for 1 hour" - echo " sf-logs-tail -ft \"MyClass\" -ax # Filter Apex logs for MyClass" + echo " sf-logs-tail -to MYORG # Tail logs for specified org" + echo " sf-logs-tail -to MYORG -lv DEBUG -dr 60 # Debug level for 1 hour" + echo " sf-logs-tail -to MYORG -ft \"MyClass\" -ax # Filter Apex logs for MyClass" echo " sf-logs-tail -to sandbox -ui USER123 # Specific org and user" echo "" echo "KEYBOARD SHORTCUTS:" diff --git a/misc/OPTION_CONSISTENCY.md b/utils/OPTION_CONSISTENCY.md similarity index 100% rename from misc/OPTION_CONSISTENCY.md rename to utils/OPTION_CONSISTENCY.md diff --git a/misc/TESTING.md b/utils/TESTING.md similarity index 100% rename from misc/TESTING.md rename to utils/TESTING.md diff --git a/misc/check-option-schemes.sh b/utils/check-option-schemes.sh similarity index 100% rename from misc/check-option-schemes.sh rename to utils/check-option-schemes.sh diff --git a/misc/export.csv b/utils/export.csv similarity index 100% rename from misc/export.csv rename to utils/export.csv diff --git a/misc/quick-test.ps1 b/utils/quick-test.ps1 similarity index 100% rename from misc/quick-test.ps1 rename to utils/quick-test.ps1 diff --git a/misc/quick-test.sh b/utils/quick-test.sh similarity index 100% rename from misc/quick-test.sh rename to utils/quick-test.sh diff --git a/misc/test-all-wrappers.sh b/utils/test-all-wrappers.sh similarity index 100% rename from misc/test-all-wrappers.sh rename to utils/test-all-wrappers.sh diff --git a/misc/test-help-options.sh b/utils/test-help-options.sh similarity index 100% rename from misc/test-help-options.sh rename to utils/test-help-options.sh diff --git a/misc/test-wrapper-suite.ps1 b/utils/test-wrapper-suite.ps1 similarity index 100% rename from misc/test-wrapper-suite.ps1 rename to utils/test-wrapper-suite.ps1 diff --git a/misc/test-wrapper-suite.sh b/utils/test-wrapper-suite.sh similarity index 100% rename from misc/test-wrapper-suite.sh rename to utils/test-wrapper-suite.sh diff --git a/misc/utils.sh b/utils/utils.sh similarity index 100% rename from misc/utils.sh rename to utils/utils.sh