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
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;
+}
+
+