Added new "bash-it migrate" command that migrates components from the old syntax to the new one that uses the load priority

This commit is contained in:
Nils Winkler
2017-05-10 11:12:08 +02:00
parent b1481038d8
commit c2446c2692
3 changed files with 52 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ _bash-it-comp()
prev="${COMP_WORDS[COMP_CWORD-1]}"
chose_opt="${COMP_WORDS[1]}"
file_type="${COMP_WORDS[2]}"
opts="help show enable disable update search"
opts="help show enable disable update search migrate"
case "${chose_opt}" in
show)
local show_args="plugins aliases completions"
@@ -65,7 +65,7 @@ _bash-it-comp()
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
return 0
;;
update | search)
update | search | migrate)
return 0
;;
enable | disable)