2021-09-19 14:37:13 -04:00
|
|
|
_zimfw_run_list() {
|
|
|
|
local -r ztool=${1} zmodule=${3} zdir=${4} zurl=${5} ztype=${6} zrev=${7}
|
2022-01-25 09:32:50 -05:00
|
|
|
local -ri zsubmodules=${8} zfrozen=${9} zdisabled=${10}
|
2021-11-08 11:38:56 -05:00
|
|
|
print -PnR "%B${zmodule}:%b ${zdir}"
|
2021-09-29 22:22:28 -04:00
|
|
|
if [[ -z ${zurl} ]] print -Pn ' (external)'
|
|
|
|
if (( ${zfrozen} )) print -Pn ' (frozen)'
|
|
|
|
if (( ${zdisabled} )) print -Pn ' (disabled)'
|
|
|
|
print
|
2021-09-19 14:37:13 -04:00
|
|
|
if (( _zprintlevel > 1 )); then
|
|
|
|
if [[ ${zfrozen} -eq 0 && -n ${zurl} ]]; then
|
2021-11-08 11:38:56 -05:00
|
|
|
print -nR " From: ${zurl}, "
|
2021-09-19 14:37:13 -04:00
|
|
|
if [[ -z ${zrev} ]]; then
|
|
|
|
print -n 'default branch'
|
|
|
|
else
|
2021-11-08 11:38:56 -05:00
|
|
|
print -nR "${ztype} ${zrev}"
|
2021-09-19 14:37:13 -04:00
|
|
|
fi
|
2022-01-25 09:32:50 -05:00
|
|
|
print -nR ", using ${ztool}"
|
|
|
|
if (( ! zsubmodules )) print -nR ', no git submodules'
|
|
|
|
print
|
2021-09-19 14:37:13 -04:00
|
|
|
fi
|
2021-09-21 09:27:56 -04:00
|
|
|
# Match and remove the current module prefix from _zfpaths, _zfunctions and _zcmds
|
2021-09-19 14:37:13 -04:00
|
|
|
local -r zpre=${zmodule}$'\0'
|
|
|
|
local -r zfpaths=(${${(M)_zfpaths:#${zpre}*}#${zpre}}) zfunctions=(${${(M)_zfunctions:#${zpre}*}#${zpre}}) zcmds=(${${(M)_zcmds:#${zpre}*}#${zpre}})
|
2022-01-11 11:29:47 -05:00
|
|
|
if (( ${#zfpaths} )) print -R ' fpath: '${zfpaths}
|
|
|
|
if (( ${#zfunctions} )) print -R ' autoload: '${zfunctions}
|
|
|
|
if (( ${#zcmds} )) print -R ' cmd: '${(j:; :)zcmds}
|
2021-09-19 14:37:13 -04:00
|
|
|
fi
|
|
|
|
}
|