From 0ebea561f78d683ff152d7e27c861f8dbbcd711a Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Fri, 22 May 2026 14:44:28 +0200 Subject: [PATCH] =?utf8?q?Zako=C5=84czenie=20tworzenia=20funkcji=20dope?= =?utf8?q?=C5=82eniania.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../immudex-complete-functions | 41 +++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) 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; +} + + -- 2.39.5