Skip to content

Commit eced680

Browse files
author
Noah Gorny
authored
Merge pull request #1856 from NoahGorny/fix-typeset-command-not-found
helpers: Fix broken compoure references after vendor change
2 parents 6f02b8d + 02f6654 commit eced680

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/helpers.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -742,14 +742,14 @@ _help-plugins()
742742
printf '%s' 'please wait, building help...'
743743
typeset grouplist=$(mktemp -t grouplist.XXXXXX)
744744
typeset func
745-
for func in $(typeset_functions)
745+
for func in $(_typeset_functions)
746746
do
747747
typeset group="$(typeset -f $func | metafor group)"
748748
if [ -z "$group" ]; then
749749
group='misc'
750750
fi
751751
typeset about="$(typeset -f $func | metafor about)"
752-
letterpress "$about" $func >> $grouplist.$group
752+
_letterpress "$about" $func >> $grouplist.$group
753753
echo $grouplist.$group >> $grouplist
754754
done
755755
# clear progress message
@@ -788,7 +788,7 @@ all_groups ()
788788

789789
typeset func
790790
typeset file=$(mktemp -t composure.XXXX)
791-
for func in $(typeset_functions)
791+
for func in $(_typeset_functions)
792792
do
793793
typeset -f $func | metafor group >> $file
794794
done

test/lib/helpers.bats

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ function local_setup {
6969
assert_line -n 0 ""
7070
}
7171

72+
@test "helpers: bash-it help plugins" {
73+
run bash-it help plugins
74+
assert_line -n 1 "base:"
75+
}
76+
7277
@test "helpers: bash-it help list aliases without any aliases enabled" {
7378
run _help-list-aliases "$BASH_IT/aliases/available/ag.aliases.bash"
7479
assert_line -n 0 "ag:"

0 commit comments

Comments
 (0)