From 7d41d1f702cbbf60f2a23437fc8b221872d1e551 Mon Sep 17 00:00:00 2001 From: "(Holloway) Chew, Kean Ho" Date: Fri, 27 Dec 2024 18:01:16 +0800 Subject: [PATCH] Shell: renamed all Parallelism functions to align with new findings It's better to have the type comes after the library name like 'HestiaKERNEL_ERROR...' or 'HestiaKERNEL_OS...' function names and filepaths. That way, it's less learning yet tracable by reading. Hence, let's deal with all the List functions. This patch renames all Parallelism functions to align with new findings in Shell/ directory. Co-authored-by: Shuralyov, Jean Co-authored-by: Galyna, Cory Co-authored-by: (Holloway) Chew, Kean Ho Signed-off-by: (Holloway) Chew, Kean Ho --- .../{Run_Parallel_Sentinel.ps1 => Run_Sentinel.ps1} | 2 +- .../Parallelism/{Run_Parallel_Sentinel.sh => Run_Sentinel.sh} | 2 +- Shell/libraries/HestiaKERNEL/Vanilla.sh.ps1 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename Shell/libraries/HestiaKERNEL/Parallelism/{Run_Parallel_Sentinel.ps1 => Run_Sentinel.ps1} (99%) rename Shell/libraries/HestiaKERNEL/Parallelism/{Run_Parallel_Sentinel.sh => Run_Sentinel.sh} (99%) diff --git a/Shell/libraries/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.ps1 b/Shell/libraries/HestiaKERNEL/Parallelism/Run_Sentinel.ps1 similarity index 99% rename from Shell/libraries/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.ps1 rename to Shell/libraries/HestiaKERNEL/Parallelism/Run_Sentinel.ps1 index 39ddfbd..eb0cd38 100644 --- a/Shell/libraries/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.ps1 +++ b/Shell/libraries/HestiaKERNEL/Parallelism/Run_Sentinel.ps1 @@ -13,7 +13,7 @@ -function HestiaKERNEL-Run-Parallel-Sentinel { +function HestiaKERNEL-PARALLELISM-Run-Sentinel { param( [string]$____parallel_command, [string]$____parallel_control_directory, diff --git a/Shell/libraries/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.sh b/Shell/libraries/HestiaKERNEL/Parallelism/Run_Sentinel.sh similarity index 99% rename from Shell/libraries/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.sh rename to Shell/libraries/HestiaKERNEL/Parallelism/Run_Sentinel.sh index 7940485..45a66b7 100644 --- a/Shell/libraries/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.sh +++ b/Shell/libraries/HestiaKERNEL/Parallelism/Run_Sentinel.sh @@ -14,7 +14,7 @@ -HestiaKERNEL_Run_Parallel_Sentinel() { +HestiaKERNEL_PARALLELISM_Run_Sentinel() { #____parallel_command="$1" #____parallel_control_directory="$2" #____parallel_available="$3" diff --git a/Shell/libraries/HestiaKERNEL/Vanilla.sh.ps1 b/Shell/libraries/HestiaKERNEL/Vanilla.sh.ps1 index c7dcbd7..c1da2c7 100644 --- a/Shell/libraries/HestiaKERNEL/Vanilla.sh.ps1 +++ b/Shell/libraries/HestiaKERNEL/Vanilla.sh.ps1 @@ -46,7 +46,7 @@ echo \" <<'RUN_AS_POWERSHELL' >/dev/null # " | Out-Null . "${env:LIBS_HESTIA}\HestiaKERNEL\OS\Is_Command_Builtin.ps1" . "${env:LIBS_HESTIA}\HestiaKERNEL\OS\Is_Command_External.ps1" . "${env:LIBS_HESTIA}\HestiaKERNEL\OS\Is_Command_Function.ps1" -. "${env:LIBS_HESTIA}\HestiaKERNEL\Parallelism\Run_Parallel_Sentinel.ps1" +. "${env:LIBS_HESTIA}\HestiaKERNEL\Parallelism\Run_Sentinel.ps1" . "${env:LIBS_HESTIA}\HestiaKERNEL\String\Get_First_Character.ps1" . "${env:LIBS_HESTIA}\HestiaKERNEL\String\Get_Last_Character.ps1" . "${env:LIBS_HESTIA}\HestiaKERNEL\String\Index_Any_Left_String.ps1" @@ -154,7 +154,7 @@ RUN_AS_POWERSHELL . "${LIBS_HESTIA}/HestiaKERNEL/OS/Is_Command_Builtin.sh" . "${LIBS_HESTIA}/HestiaKERNEL/OS/Is_Command_External.sh" . "${LIBS_HESTIA}/HestiaKERNEL/OS/Is_Command_Function.sh" -. "${LIBS_HESTIA}/HestiaKERNEL/Parallelism/Run_Parallel_Sentinel.sh" +. "${LIBS_HESTIA}/HestiaKERNEL/Parallelism/Run_Sentinel.sh" . "${LIBS_HESTIA}/HestiaKERNEL/String/Get_First_Character.sh" . "${LIBS_HESTIA}/HestiaKERNEL/String/Get_Last_Character.sh" . "${LIBS_HESTIA}/HestiaKERNEL/String/Index_Any_Left_String.sh"