]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Zakończenie tworzenia funkcji dopełeniania.
authorxf0r3m <jakubstasinski@protonmail.com>
Fri, 22 May 2026 12:44:28 +0000 (14:44 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Fri, 22 May 2026 12:44:28 +0000 (14:44 +0200)
immudex-complete-project/immudex-complete-functions

index bef312a6de6e0ea6af148e8b7198576f5e2a8d19..5edfe2c9e0f096e15d69a8c37ce63bd7695137d4 100644 (file)
@@ -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;
+}
+
+