From 7b5f758eba535eeaac4ab70a6f588642d9f513fe Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Sun, 21 Mar 2021 21:52:47 +0200 Subject: [PATCH 1/2] helpers: Fix broken compoure references after vendor change --- lib/helpers.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index b89bad3dce..bf63c362d4 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -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 From 02f66548419fe81ae11a1fcc3a4a4ff9c496ae99 Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Sun, 21 Mar 2021 22:07:24 +0200 Subject: [PATCH 2/2] test: Add bash-it help plugins test --- test/lib/helpers.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lib/helpers.bats b/test/lib/helpers.bats index 5a6fdd2e0f..e60d5542ab 100644 --- a/test/lib/helpers.bats +++ b/test/lib/helpers.bats @@ -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:"