forked from TS3Tools/TS3UpdateScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ts3updatescript
27 lines (26 loc) · 1.25 KB
/
.ts3updatescript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# About: This is the bash-completion script for the TS3UpdateScript.
# Author: Sebastian Kraetzig <[email protected]>
# Project: www.ts3-tools.info
# facebook: www.facebook.com/TS3Tools
# License: GNU GPLv3
# _____ ____ _____ _ _ _ __
#|_ _/ ___|___ / | |_ ___ ___ | |___ (_)_ __ / _| ___
# | | \___ \ |_ \ _____| __/ _ \ / _ \| / __| | | '_ \| |_ / _ \
# | | ___) |__) |_____| || (_) | (_) | \__ \_| | | | | _| (_) |
# |_| |____/____/ \__\___/ \___/|_|___(_)_|_| |_|_| \___/
#
# Donations: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7ZRXLSC2UBVWE
#
_ts3updatescript()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --version --display-settings --test-inform-online-clients --update-script --show-license-key --request-license --deinstall-cronjob --force-license-update --check --delete-old-logs --inform-online-clients --disable-temporary-password-backup --keep-backups --waiting-time-in-minutes --set-release --beta-release --debug --install-cronjob"
if [[ ${cur} == -* ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
}
complete -F _ts3updatescript TS3UpdateScript