From f221f63d7df418d538b5171c173676fd611e5d0e Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Wed, 31 May 2017 17:34:46 +0200 Subject: [PATCH] Add completion for help command, and help for migrate --- completion/available/bash-it.completion.bash | 2 +- lib/helpers.bash | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/completion/available/bash-it.completion.bash b/completion/available/bash-it.completion.bash index 4d28723d..e3e37ce6 100644 --- a/completion/available/bash-it.completion.bash +++ b/completion/available/bash-it.completion.bash @@ -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 ;; diff --git a/lib/helpers.bash b/lib/helpers.bash index 138d8392..7974bd5f 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -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'