Merge pull request #1856 from NoahGorny/fix-typeset-command-not-found

helpers: Fix broken compoure references after vendor change
pull/1857/head v2.1.2
Noah Gorny 2021-03-22 21:40:29 +02:00 committed by GitHub
commit eced6802d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -742,14 +742,14 @@ _help-plugins()
printf '%s' 'please wait, building help...'
typeset grouplist=$(mktemp -t grouplist.XXXXXX)
typeset func
for func in $(typeset_functions)
for func in $(_typeset_functions)
do
typeset group="$(typeset -f $func | metafor group)"
if [ -z "$group" ]; then
group='misc'
fi
typeset about="$(typeset -f $func | metafor about)"
letterpress "$about" $func >> $grouplist.$group
_letterpress "$about" $func >> $grouplist.$group
echo $grouplist.$group >> $grouplist
done
# clear progress message
@ -788,7 +788,7 @@ all_groups ()
typeset func
typeset file=$(mktemp -t composure.XXXX)
for func in $(typeset_functions)
for func in $(_typeset_functions)
do
typeset -f $func | metafor group >> $file
done

View File

@ -69,6 +69,11 @@ function local_setup {
assert_line -n 0 ""
}
@test "helpers: bash-it help plugins" {
run bash-it help plugins
assert_line -n 1 "base:"
}
@test "helpers: bash-it help list aliases without any aliases enabled" {
run _help-list-aliases "$BASH_IT/aliases/available/ag.aliases.bash"
assert_line -n 0 "ag:"