basic plugin management

move plugin management functions into 'lib' group in helpers.bash
This commit is contained in:
Erich Smith
2012-05-11 14:25:24 -04:00
parent a385e0f32e
commit 254d4459e2
2 changed files with 96 additions and 29 deletions

View File

@@ -175,21 +175,6 @@ command_exists ()
type "$1" &> /dev/null ;
}
plugins-help ()
{
about list all plugins and functions defined by bash-it
group base
printf '%s\n' "bash-it plugins help"
printf '\n'
typeset group
for group in $(all_groups)
do
printf '%s\n' "group: $group"
glossary $group
printf '\n'
done
}
# useful for administrators and configs
buf ()
{
@@ -200,17 +185,3 @@ buf ()
local filetime=$(date +%Y%m%d_%H%M%S)
cp ${filename} ${filename}_${filetime}
}
all_groups ()
{
about displays all unique metadata groups
group base
typeset func
typeset file=$(mktemp /tmp/composure.XXXX)
for func in $(typeset_functions)
do
typeset -f $func | metafor group >> $file
done
cat $file | sort | uniq
rm $file
}