Modules Auto-Complete Configuration
It's possible to configure auto-complete for modules while running ./update-version-tomcat.sh
script. It's not Version-Updater functionality – it's server configuration.
On the server you need to add following code into ~/.bash_profile
file:
# Autocomplete in version-updater
_complete_version_updater_modules() {
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_modules=`cat ~/version-updater/autocomplete-modules.conf | \
awk '{print $1}'
`
COMPREPLY=( $(compgen -W "${comp_modules}" -- $cur))
return 0
}
complete -F _complete_version_updater_modules update-version-tomcat.sh
And you need to add version-updater/autocomplete-modules.conf
file with simple list of all modules, that you need to show with auto-complete.