Skip to content

Commit

Permalink
Merge pull request #1856 from NoahGorny/fix-typeset-command-not-found
Browse files Browse the repository at this point in the history
helpers: Fix broken compoure references after vendor change
  • Loading branch information
Noah Gorny committed Mar 22, 2021
2 parents 6f02b8d + 02f6654 commit eced680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions test/lib/helpers.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit eced680

Please sign in to comment.