feat: prime the bash-completion output

While not ideal, users can manually update the completion-cache by reconfiguring the installed package, or updating Dokku.
This commit is contained in:
Jose Diaz-Gonzalez
2018-04-27 04:04:36 -04:00
parent 6ea86f2714
commit 75ea7862cc
2 changed files with 6 additions and 0 deletions

3
debian/postinst vendored
View File

@@ -80,6 +80,9 @@ case "$1" in
echo "Install all core plugins"
dokku plugin:install --core
echo "Creating bash-completion cache"
dokku --quiet help --all | awk '/^ /{ print $1 }' | sort > "/var/cache/dokku-completion"
rm -f ${DOKKU_ROOT}/VERSION
cp ${DOKKU_LIB_ROOT}/STABLE_VERSION ${DOKKU_ROOT}/VERSION

View File

@@ -37,6 +37,9 @@ setup-plugins() {
echo "Install all core plugins"
dokku plugin:install --core
echo "Creating bash-completion cache"
dokku --quiet help --all | awk '/^ /{ print $1 }' | sort > "/var/cache/dokku-completion"
}
setup-sshcommand() {