feat: recache bash-completion output whenever actions are taken on plugins

While this slows down those actions, it ensures we never have out of date information.
This commit is contained in:
Jose Diaz-Gonzalez
2018-04-27 04:09:53 -04:00
parent 75ea7862cc
commit 172779f3d6
6 changed files with 12 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ plugin_enable_cmd() {
[[ -z $2 ]] && dokku_log_fail "Please specify a plugin to enable"
local PLUGIN="$2"
enable_plugin "$PLUGIN"
plugin_prime_bash_completion
}
plugin_enable_cmd "$@"