Add completion for help command, and help for migrate

pull/974/head
Nils Winkler 2017-05-31 17:34:46 +02:00
parent bd2e0f1366
commit f221f63d7d
2 changed files with 9 additions and 1 deletions

View File

@ -61,7 +61,7 @@ _bash-it-comp()
return 0
;;
help)
local help_args="plugins aliases completions update"
local help_args="plugins aliases completions migrate update"
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
return 0
;;

View File

@ -469,6 +469,14 @@ _help-update () {
echo "Check for a new version of Bash-it and update it."
}
_help-migrate () {
_about 'help message for migrate command'
_group 'lib'
echo "Migrates internal Bash-it structure to the latest version in case of changes."
echo "The 'migrate' command is run automatically when calling 'update', 'enable' or 'disable'."
}
all_groups ()
{
about 'displays all unique metadata groups'