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:
@@ -9,6 +9,7 @@ plugin_disable_cmd() {
|
||||
[[ -z $2 ]] && dokku_log_fail "Please specify a plugin to disable"
|
||||
local PLUGIN="$2"
|
||||
disable_plugin "$PLUGIN"
|
||||
plugin_prime_bash_completion
|
||||
}
|
||||
|
||||
plugin_disable_cmd "$@"
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -20,6 +20,7 @@ plugin_install_cmd() {
|
||||
plugn trigger install
|
||||
;;
|
||||
esac
|
||||
plugin_prime_bash_completion
|
||||
}
|
||||
|
||||
plugin_install_cmd "$@"
|
||||
|
||||
@@ -9,6 +9,7 @@ plugin_uninstall_cmd() {
|
||||
[[ -z $2 ]] && dokku_log_fail "Please specify a plugin to enable"
|
||||
local PLUGIN="$2"
|
||||
uninstall_plugin "$PLUGIN"
|
||||
plugin_prime_bash_completion
|
||||
}
|
||||
|
||||
plugin_uninstall_cmd "$@"
|
||||
|
||||
@@ -10,6 +10,7 @@ plugin_update_cmd() {
|
||||
plugn update "$PLUGIN" "$PLUGIN_COMMITTISH"
|
||||
fi
|
||||
plugn trigger update
|
||||
plugin_prime_bash_completion
|
||||
}
|
||||
|
||||
plugin_update_cmd "$@"
|
||||
|
||||
Reference in New Issue
Block a user