From: xf0r3m Date: Fri, 22 May 2026 12:44:28 +0000 (+0200) Subject: Zakończenie tworzenia funkcji dopełeniania. X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=0ebea561f78d683ff152d7e27c861f8dbbcd711a;p=immudex.git Zakończenie tworzenia funkcji dopełeniania. --- diff --git a/immudex-complete-project/immudex-complete-functions b/immudex-complete-project/immudex-complete-functions index bef312a..5edfe2c 100644 --- a/immudex-complete-project/immudex-complete-functions +++ b/immudex-complete-project/immudex-complete-functions @@ -206,11 +206,11 @@ idx_shoutcasts_complete() { prev=${COMP_WORDS[COMP_CWORD-1]} if [ $COMP_CWORD -eq 1 ]; then - COMPREPLY=( $(compgen -W '-h -l -m -s -v' -- $cur) ); + COMPREPLY=( $(compgen -W '-s -k -h -v' -- $cur) ); elif [ $COMP_CWORD -eq 2 ]; then case "$prev" in - '-l'|'-m'|'-s') - COMPREPLY=( $(compgen -W "$LOCATION" -- $cur) ) + '-s') + COMPREPLY=( $(compgen -W "icecast radio" -- $cur) ) ;; *) return 0;; esac @@ -218,3 +218,38 @@ idx_shoutcasts_complete() { return 0; } +#immudex-upgrade +idx_upgrade_complete() { + local cur; + + COMPREPLY=(); + cur=${COMP_WORDS[COMP_CWORD]}; + + if [ $COMP_CWORD -eq 1 ]; then + COMPREPLY=( $(compgen -W '-c -d -h -m -p -s -u -v' -- $cur) ); + elif [ $COMP_CWORD -eq 2 ]; then + return 0; + fi + return 0; + +} + +idx_ytplay_complete() { + local cur; + + COMPREPLY=(); + cur=${COMP_WORDS[COMP_CWORD]}; + prev=${COMP_WORDS[COMP_CWORD-2]}; + + if [ $COMP_CWORD -eq 1 ]; then + COMPREPLY=( $(compgen -W '-a -h -i -s -v' -- $cur) ); + elif [ $COMP_CWORD -eq 3 ]; then + case "$prev" in + '-s') COMPREPLY=( $(compgen -W '-a -v' -- $cur) );; + *) return 0;; + esac + fi + return 0; +} + +