lib: rename _bash-it-clean-component-cache()

…to `_bash-it-component-cache-clean()`
This commit is contained in:
John D Pell
2022-02-18 00:22:20 -08:00
parent 6257853759
commit fe48deda2d
3 changed files with 6 additions and 6 deletions

View File

@@ -121,13 +121,13 @@ function _bash-it-component-pluralize() {
printf -v "${_result?}" '%s' "${_component_to_plural}"
}
function _bash-it-clean-component-cache() {
function _bash-it-component-cache-clean() {
local component="${1:-}"
local cache
local -a components=('aliases' 'plugins' 'completions')
if [[ -z "${component}" ]]; then
for component in "${components[@]}"; do
_bash-it-clean-component-cache "${component}"
_bash-it-component-cache-clean "${component}"
done
else
_bash-it-component-cache-file "${component}" cache