From cea95d72b39c6ce03202a640045514682ebbf1fd Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Wed, 14 Apr 2021 14:29:32 +0300 Subject: [PATCH] lib: helpers: Rename _bash-it-process-component to _bash-it-determine-component-status-from-path --- lib/helpers.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index 681f4630..52f5e4a1 100755 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -505,7 +505,7 @@ _bash-it-profile-save() { echo "" >> "$profile_path" echo "# $subdirectory" >> "$profile_path" for f in "${BASH_IT}/$subdirectory/available/"*.bash; do - _bash-it-process-component "$f" + _bash-it-determine-component-status-from-path "$f" if [ "$enabled" == "x" ]; then echo "$subdirectory $enabled_file_clean" >> "$profile_path" fi @@ -613,11 +613,11 @@ _bash-it-reload() { popd &> /dev/null || return } -_bash-it-process-component () +_bash-it-determine-component-status-from-path () { _about 'internal function used to process component name and check if its enabled' _param '1: full path to available component file' - _example '$ _bash-it-process-component "${BASH_IT}/plugins/available/git.plugin.bash' + _example '$ _bash-it-determine-component-status-from-path "${BASH_IT}/plugins/available/git.plugin.bash' # Check for both the old format without the load priority, and the extended format with the priority declare enabled_files enabled_file @@ -651,7 +651,7 @@ _bash-it-describe () printf "%-20s%-10s%s\n" "$column_header" 'Enabled?' 'Description' for f in "${BASH_IT}/$subdirectory/available/"*.bash do - _bash-it-process-component "$f" + _bash-it-determine-component-status-from-path "$f" printf "%-20s%-10s%s\n" "$enabled_file_clean" " [$enabled]" "$(cat $f | metafor about-$file_type)" done printf '\n%s\n' "to enable $preposition $file_type, do:"