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:
@@ -8,3 +8,10 @@ plugin_list_cmd() {
|
||||
plugn version
|
||||
plugn list
|
||||
}
|
||||
|
||||
plugin_prime_bash_completion() {
|
||||
declare desc="primes the bash-completion cache"
|
||||
|
||||
dokku_log_info1_quiet "Priming bash-completion cache"
|
||||
dokku --quiet help --all | awk '/^ /{ print $1 }' | sort > "/var/cache/dokku-completion"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user