From 452e095f909980d56ca876832d1665dd4b8b20ce Mon Sep 17 00:00:00 2001 From: reynold Date: Thu, 28 Aug 2025 22:32:19 +0800 Subject: [PATCH] Reorganize directory structure: move utility files to misc/ directory - Move all non-wrapper files (testing scripts, documentation, utilities) to misc/ directory - Keep SF CLI wrapper scripts and README.md in root directory for better organization - Maintain clean root directory with only the actual wrapper scripts and main documentation - All wrapper scripts remain easily accessible and discoverable - Supporting files are organized in misc/ subdirectory --- OPTION_CONSISTENCY.md => misc/OPTION_CONSISTENCY.md | 0 TESTING.md => misc/TESTING.md | 0 check-option-schemes.sh => misc/check-option-schemes.sh | 0 export.csv => misc/export.csv | 0 quick-test.ps1 => misc/quick-test.ps1 | 0 quick-test.sh => misc/quick-test.sh | 0 test-all-wrappers.sh => misc/test-all-wrappers.sh | 0 test-help-options.sh => misc/test-help-options.sh | 0 test-wrapper-suite.ps1 => misc/test-wrapper-suite.ps1 | 0 test-wrapper-suite.sh => misc/test-wrapper-suite.sh | 0 utils.sh => misc/utils.sh | 0 sf-check | 6 ++++++ sf-data-export | 6 ++++++ sf-data-import | 6 ++++++ sf-logs-tail | 6 ++++++ 15 files changed, 24 insertions(+) rename OPTION_CONSISTENCY.md => misc/OPTION_CONSISTENCY.md (100%) rename TESTING.md => misc/TESTING.md (100%) rename check-option-schemes.sh => misc/check-option-schemes.sh (100%) rename export.csv => misc/export.csv (100%) rename quick-test.ps1 => misc/quick-test.ps1 (100%) rename quick-test.sh => misc/quick-test.sh (100%) rename test-all-wrappers.sh => misc/test-all-wrappers.sh (100%) rename test-help-options.sh => misc/test-help-options.sh (100%) rename test-wrapper-suite.ps1 => misc/test-wrapper-suite.ps1 (100%) rename test-wrapper-suite.sh => misc/test-wrapper-suite.sh (100%) rename utils.sh => misc/utils.sh (100%) diff --git a/OPTION_CONSISTENCY.md b/misc/OPTION_CONSISTENCY.md similarity index 100% rename from OPTION_CONSISTENCY.md rename to misc/OPTION_CONSISTENCY.md diff --git a/TESTING.md b/misc/TESTING.md similarity index 100% rename from TESTING.md rename to misc/TESTING.md diff --git a/check-option-schemes.sh b/misc/check-option-schemes.sh similarity index 100% rename from check-option-schemes.sh rename to misc/check-option-schemes.sh diff --git a/export.csv b/misc/export.csv similarity index 100% rename from export.csv rename to misc/export.csv diff --git a/quick-test.ps1 b/misc/quick-test.ps1 similarity index 100% rename from quick-test.ps1 rename to misc/quick-test.ps1 diff --git a/quick-test.sh b/misc/quick-test.sh similarity index 100% rename from quick-test.sh rename to misc/quick-test.sh diff --git a/test-all-wrappers.sh b/misc/test-all-wrappers.sh similarity index 100% rename from test-all-wrappers.sh rename to misc/test-all-wrappers.sh diff --git a/test-help-options.sh b/misc/test-help-options.sh similarity index 100% rename from test-help-options.sh rename to misc/test-help-options.sh diff --git a/test-wrapper-suite.ps1 b/misc/test-wrapper-suite.ps1 similarity index 100% rename from test-wrapper-suite.ps1 rename to misc/test-wrapper-suite.ps1 diff --git a/test-wrapper-suite.sh b/misc/test-wrapper-suite.sh similarity index 100% rename from test-wrapper-suite.sh rename to misc/test-wrapper-suite.sh diff --git a/utils.sh b/misc/utils.sh similarity index 100% rename from utils.sh rename to misc/utils.sh diff --git a/sf-check b/sf-check index 4c1d796..c9a6199 100755 --- a/sf-check +++ b/sf-check @@ -207,6 +207,12 @@ run_diagnostics() { # Parse command line arguments VERBOSE=false +# Show help if no arguments provided +if [[ $# -eq 0 ]]; then + show_help + exit 0 +fi + # Parse arguments manually for two-character options while [[ $# -gt 0 ]]; do case $1 in diff --git a/sf-data-export b/sf-data-export index 4af504f..6501a80 100755 --- a/sf-data-export +++ b/sf-data-export @@ -120,6 +120,12 @@ USE_BULK=false WAIT_TIME="10" VERBOSE=false +# Show help if no arguments provided +if [[ $# -eq 0 ]]; then + show_usage + exit 0 +fi + # Parse command line arguments while [[ $# -gt 0 ]]; do case $1 in diff --git a/sf-data-import b/sf-data-import index 131c2f4..07af75d 100755 --- a/sf-data-import +++ b/sf-data-import @@ -168,6 +168,12 @@ BATCH_SIZE="10000" IGNORE_ERRORS=false VERBOSE=false +# Show help if no arguments provided +if [[ $# -eq 0 ]]; then + show_usage + exit 0 +fi + # Parse command line arguments while [[ $# -gt 0 ]]; do case $1 in diff --git a/sf-logs-tail b/sf-logs-tail index 664468a..909d091 100755 --- a/sf-logs-tail +++ b/sf-logs-tail @@ -153,6 +153,12 @@ APEX_ONLY=false NO_COLORS=false VERBOSE=false +# Show help if no arguments provided +if [[ $# -eq 0 ]]; then + show_usage + exit 0 +fi + # Parse command line arguments while [[ $# -gt 0 ]]; do case $1 in