aboutsummaryrefslogtreecommitdiffstats
path: root/completions/rsp.bash
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/rsp.bash867
1 files changed, 0 insertions, 867 deletions
diff --git a/completions/rsp.bash b/completions/rsp.bash
deleted file mode 100644
index f5c87dc..0000000
--- a/completions/rsp.bash
+++ /dev/null
@@ -1,867 +0,0 @@
1_rsp() {
2 local i cur prev opts cmd
3 COMPREPLY=()
4 if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
5 cur="$2"
6 else
7 cur="${COMP_WORDS[COMP_CWORD]}"
8 fi
9 prev="$3"
10 cmd=""
11 opts=""
12
13 for i in "${COMP_WORDS[@]:0:COMP_CWORD}"
14 do
15 case "${cmd},${i}" in
16 ",$1")
17 cmd="rsp"
18 ;;
19 rsp,help)
20 cmd="rsp__subcmd__help"
21 ;;
22 rsp,next)
23 cmd="rsp__subcmd__next"
24 ;;
25 rsp,pause)
26 cmd="rsp__subcmd__pause"
27 ;;
28 rsp,play)
29 cmd="rsp__subcmd__play"
30 ;;
31 rsp,previous)
32 cmd="rsp__subcmd__previous"
33 ;;
34 rsp,queue)
35 cmd="rsp__subcmd__queue"
36 ;;
37 rsp,restart)
38 cmd="rsp__subcmd__restart"
39 ;;
40 rsp,resume)
41 cmd="rsp__subcmd__resume"
42 ;;
43 rsp,scan)
44 cmd="rsp__subcmd__scan"
45 ;;
46 rsp,settings)
47 cmd="rsp__subcmd__settings"
48 ;;
49 rsp,shuffle)
50 cmd="rsp__subcmd__shuffle"
51 ;;
52 rsp,start-daemon)
53 cmd="rsp__subcmd__start__subcmd__daemon"
54 ;;
55 rsp,status)
56 cmd="rsp__subcmd__status"
57 ;;
58 rsp,stop)
59 cmd="rsp__subcmd__stop"
60 ;;
61 rsp,stop-daemon)
62 cmd="rsp__subcmd__stop__subcmd__daemon"
63 ;;
64 rsp,toggle)
65 cmd="rsp__subcmd__toggle"
66 ;;
67 rsp,volume)
68 cmd="rsp__subcmd__volume"
69 ;;
70 rsp__subcmd__help,help)
71 cmd="rsp__subcmd__help__subcmd__help"
72 ;;
73 rsp__subcmd__help,next)
74 cmd="rsp__subcmd__help__subcmd__next"
75 ;;
76 rsp__subcmd__help,pause)
77 cmd="rsp__subcmd__help__subcmd__pause"
78 ;;
79 rsp__subcmd__help,play)
80 cmd="rsp__subcmd__help__subcmd__play"
81 ;;
82 rsp__subcmd__help,previous)
83 cmd="rsp__subcmd__help__subcmd__previous"
84 ;;
85 rsp__subcmd__help,queue)
86 cmd="rsp__subcmd__help__subcmd__queue"
87 ;;
88 rsp__subcmd__help,restart)
89 cmd="rsp__subcmd__help__subcmd__restart"
90 ;;
91 rsp__subcmd__help,resume)
92 cmd="rsp__subcmd__help__subcmd__resume"
93 ;;
94 rsp__subcmd__help,scan)
95 cmd="rsp__subcmd__help__subcmd__scan"
96 ;;
97 rsp__subcmd__help,settings)
98 cmd="rsp__subcmd__help__subcmd__settings"
99 ;;
100 rsp__subcmd__help,shuffle)
101 cmd="rsp__subcmd__help__subcmd__shuffle"
102 ;;
103 rsp__subcmd__help,start-daemon)
104 cmd="rsp__subcmd__help__subcmd__start__subcmd__daemon"
105 ;;
106 rsp__subcmd__help,status)
107 cmd="rsp__subcmd__help__subcmd__status"
108 ;;
109 rsp__subcmd__help,stop)
110 cmd="rsp__subcmd__help__subcmd__stop"
111 ;;
112 rsp__subcmd__help,stop-daemon)
113 cmd="rsp__subcmd__help__subcmd__stop__subcmd__daemon"
114 ;;
115 rsp__subcmd__help,toggle)
116 cmd="rsp__subcmd__help__subcmd__toggle"
117 ;;
118 rsp__subcmd__help,volume)
119 cmd="rsp__subcmd__help__subcmd__volume"
120 ;;
121 rsp__subcmd__help__subcmd__settings,get)
122 cmd="rsp__subcmd__help__subcmd__settings__subcmd__get"
123 ;;
124 rsp__subcmd__help__subcmd__settings,list)
125 cmd="rsp__subcmd__help__subcmd__settings__subcmd__list"
126 ;;
127 rsp__subcmd__help__subcmd__settings,set)
128 cmd="rsp__subcmd__help__subcmd__settings__subcmd__set"
129 ;;
130 rsp__subcmd__help__subcmd__settings,unset)
131 cmd="rsp__subcmd__help__subcmd__settings__subcmd__unset"
132 ;;
133 rsp__subcmd__settings,get)
134 cmd="rsp__subcmd__settings__subcmd__get"
135 ;;
136 rsp__subcmd__settings,help)
137 cmd="rsp__subcmd__settings__subcmd__help"
138 ;;
139 rsp__subcmd__settings,list)
140 cmd="rsp__subcmd__settings__subcmd__list"
141 ;;
142 rsp__subcmd__settings,set)
143 cmd="rsp__subcmd__settings__subcmd__set"
144 ;;
145 rsp__subcmd__settings,unset)
146 cmd="rsp__subcmd__settings__subcmd__unset"
147 ;;
148 rsp__subcmd__settings__subcmd__help,get)
149 cmd="rsp__subcmd__settings__subcmd__help__subcmd__get"
150 ;;
151 rsp__subcmd__settings__subcmd__help,help)
152 cmd="rsp__subcmd__settings__subcmd__help__subcmd__help"
153 ;;
154 rsp__subcmd__settings__subcmd__help,list)
155 cmd="rsp__subcmd__settings__subcmd__help__subcmd__list"
156 ;;
157 rsp__subcmd__settings__subcmd__help,set)
158 cmd="rsp__subcmd__settings__subcmd__help__subcmd__set"
159 ;;
160 rsp__subcmd__settings__subcmd__help,unset)
161 cmd="rsp__subcmd__settings__subcmd__help__subcmd__unset"
162 ;;
163 *)
164 ;;
165 esac
166 done
167
168 case "${cmd}" in
169 rsp)
170 opts="-h --help start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help"
171 if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
172 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
173 return 0
174 fi
175 case "${prev}" in
176 *)
177 COMPREPLY=()
178 ;;
179 esac
180 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
181 return 0
182 ;;
183 rsp__subcmd__help)
184 opts="start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help"
185 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
186 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
187 return 0
188 fi
189 case "${prev}" in
190 *)
191 COMPREPLY=()
192 ;;
193 esac
194 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
195 return 0
196 ;;
197 rsp__subcmd__help__subcmd__help)
198 opts=""
199 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
200 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
201 return 0
202 fi
203 case "${prev}" in
204 *)
205 COMPREPLY=()
206 ;;
207 esac
208 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
209 return 0
210 ;;
211 rsp__subcmd__help__subcmd__next)
212 opts=""
213 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
214 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
215 return 0
216 fi
217 case "${prev}" in
218 *)
219 COMPREPLY=()
220 ;;
221 esac
222 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
223 return 0
224 ;;
225 rsp__subcmd__help__subcmd__pause)
226 opts=""
227 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
228 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
229 return 0
230 fi
231 case "${prev}" in
232 *)
233 COMPREPLY=()
234 ;;
235 esac
236 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
237 return 0
238 ;;
239 rsp__subcmd__help__subcmd__play)
240 opts=""
241 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
242 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
243 return 0
244 fi
245 case "${prev}" in
246 *)
247 COMPREPLY=()
248 ;;
249 esac
250 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
251 return 0
252 ;;
253 rsp__subcmd__help__subcmd__previous)
254 opts=""
255 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
256 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
257 return 0
258 fi
259 case "${prev}" in
260 *)
261 COMPREPLY=()
262 ;;
263 esac
264 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
265 return 0
266 ;;
267 rsp__subcmd__help__subcmd__queue)
268 opts=""
269 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
270 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
271 return 0
272 fi
273 case "${prev}" in
274 *)
275 COMPREPLY=()
276 ;;
277 esac
278 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
279 return 0
280 ;;
281 rsp__subcmd__help__subcmd__restart)
282 opts=""
283 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
284 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
285 return 0
286 fi
287 case "${prev}" in
288 *)
289 COMPREPLY=()
290 ;;
291 esac
292 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
293 return 0
294 ;;
295 rsp__subcmd__help__subcmd__resume)
296 opts=""
297 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
298 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
299 return 0
300 fi
301 case "${prev}" in
302 *)
303 COMPREPLY=()
304 ;;
305 esac
306 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
307 return 0
308 ;;
309 rsp__subcmd__help__subcmd__scan)
310 opts=""
311 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
312 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
313 return 0
314 fi
315 case "${prev}" in
316 *)
317 COMPREPLY=()
318 ;;
319 esac
320 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
321 return 0
322 ;;
323 rsp__subcmd__help__subcmd__settings)
324 opts="get set list unset"
325 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
326 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
327 return 0
328 fi
329 case "${prev}" in
330 *)
331 COMPREPLY=()
332 ;;
333 esac
334 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
335 return 0
336 ;;
337 rsp__subcmd__help__subcmd__settings__subcmd__get)
338 opts=""
339 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
340 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
341 return 0
342 fi
343 case "${prev}" in
344 *)
345 COMPREPLY=()
346 ;;
347 esac
348 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
349 return 0
350 ;;
351 rsp__subcmd__help__subcmd__settings__subcmd__list)
352 opts=""
353 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
354 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
355 return 0
356 fi
357 case "${prev}" in
358 *)
359 COMPREPLY=()
360 ;;
361 esac
362 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
363 return 0
364 ;;
365 rsp__subcmd__help__subcmd__settings__subcmd__set)
366 opts=""
367 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
368 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
369 return 0
370 fi
371 case "${prev}" in
372 *)
373 COMPREPLY=()
374 ;;
375 esac
376 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
377 return 0
378 ;;
379 rsp__subcmd__help__subcmd__settings__subcmd__unset)
380 opts=""
381 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
382 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
383 return 0
384 fi
385 case "${prev}" in
386 *)
387 COMPREPLY=()
388 ;;
389 esac
390 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
391 return 0
392 ;;
393 rsp__subcmd__help__subcmd__shuffle)
394 opts=""
395 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
396 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
397 return 0
398 fi
399 case "${prev}" in
400 *)
401 COMPREPLY=()
402 ;;
403 esac
404 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
405 return 0
406 ;;
407 rsp__subcmd__help__subcmd__start__subcmd__daemon)
408 opts=""
409 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
410 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
411 return 0
412 fi
413 case "${prev}" in
414 *)
415 COMPREPLY=()
416 ;;
417 esac
418 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
419 return 0
420 ;;
421 rsp__subcmd__help__subcmd__status)
422 opts=""
423 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
424 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
425 return 0
426 fi
427 case "${prev}" in
428 *)
429 COMPREPLY=()
430 ;;
431 esac
432 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
433 return 0
434 ;;
435 rsp__subcmd__help__subcmd__stop)
436 opts=""
437 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
438 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
439 return 0
440 fi
441 case "${prev}" in
442 *)
443 COMPREPLY=()
444 ;;
445 esac
446 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
447 return 0
448 ;;
449 rsp__subcmd__help__subcmd__stop__subcmd__daemon)
450 opts=""
451 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
452 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
453 return 0
454 fi
455 case "${prev}" in
456 *)
457 COMPREPLY=()
458 ;;
459 esac
460 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
461 return 0
462 ;;
463 rsp__subcmd__help__subcmd__toggle)
464 opts=""
465 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
466 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
467 return 0
468 fi
469 case "${prev}" in
470 *)
471 COMPREPLY=()
472 ;;
473 esac
474 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
475 return 0
476 ;;
477 rsp__subcmd__help__subcmd__volume)
478 opts=""
479 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
480 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
481 return 0
482 fi
483 case "${prev}" in
484 *)
485 COMPREPLY=()
486 ;;
487 esac
488 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
489 return 0
490 ;;
491 rsp__subcmd__next)
492 opts="-h --help"
493 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
494 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
495 return 0
496 fi
497 case "${prev}" in
498 *)
499 COMPREPLY=()
500 ;;
501 esac
502 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
503 return 0
504 ;;
505 rsp__subcmd__pause)
506 opts="-h --help"
507 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
508 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
509 return 0
510 fi
511 case "${prev}" in
512 *)
513 COMPREPLY=()
514 ;;
515 esac
516 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
517 return 0
518 ;;
519 rsp__subcmd__play)
520 opts="-i -n -h --now --next --help [QUERY]"
521 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
522 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
523 return 0
524 fi
525 case "${prev}" in
526 *)
527 COMPREPLY=()
528 ;;
529 esac
530 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
531 return 0
532 ;;
533 rsp__subcmd__previous)
534 opts="-h --help"
535 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
536 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
537 return 0
538 fi
539 case "${prev}" in
540 *)
541 COMPREPLY=()
542 ;;
543 esac
544 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
545 return 0
546 ;;
547 rsp__subcmd__queue)
548 opts="-h --help [POSITION] [QUERY]"
549 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
550 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
551 return 0
552 fi
553 case "${prev}" in
554 *)
555 COMPREPLY=()
556 ;;
557 esac
558 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
559 return 0
560 ;;
561 rsp__subcmd__restart)
562 opts="-h --help"
563 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
564 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
565 return 0
566 fi
567 case "${prev}" in
568 *)
569 COMPREPLY=()
570 ;;
571 esac
572 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
573 return 0
574 ;;
575 rsp__subcmd__resume)
576 opts="-h --help"
577 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
578 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
579 return 0
580 fi
581 case "${prev}" in
582 *)
583 COMPREPLY=()
584 ;;
585 esac
586 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
587 return 0
588 ;;
589 rsp__subcmd__scan)
590 opts="-h --force --paths --help"
591 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
592 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
593 return 0
594 fi
595 case "${prev}" in
596 --paths)
597 COMPREPLY=($(compgen -f "${cur}"))
598 return 0
599 ;;
600 *)
601 COMPREPLY=()
602 ;;
603 esac
604 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
605 return 0
606 ;;
607 rsp__subcmd__settings)
608 opts="-h --help get set list unset help"
609 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
610 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
611 return 0
612 fi
613 case "${prev}" in
614 *)
615 COMPREPLY=()
616 ;;
617 esac
618 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
619 return 0
620 ;;
621 rsp__subcmd__settings__subcmd__get)
622 opts="-h --help <KEY>"
623 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
624 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
625 return 0
626 fi
627 case "${prev}" in
628 *)
629 COMPREPLY=()
630 ;;
631 esac
632 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
633 return 0
634 ;;
635 rsp__subcmd__settings__subcmd__help)
636 opts="get set list unset help"
637 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
638 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
639 return 0
640 fi
641 case "${prev}" in
642 *)
643 COMPREPLY=()
644 ;;
645 esac
646 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
647 return 0
648 ;;
649 rsp__subcmd__settings__subcmd__help__subcmd__get)
650 opts=""
651 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
652 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
653 return 0
654 fi
655 case "${prev}" in
656 *)
657 COMPREPLY=()
658 ;;
659 esac
660 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
661 return 0
662 ;;
663 rsp__subcmd__settings__subcmd__help__subcmd__help)
664 opts=""
665 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
666 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
667 return 0
668 fi
669 case "${prev}" in
670 *)
671 COMPREPLY=()
672 ;;
673 esac
674 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
675 return 0
676 ;;
677 rsp__subcmd__settings__subcmd__help__subcmd__list)
678 opts=""
679 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
680 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
681 return 0
682 fi
683 case "${prev}" in
684 *)
685 COMPREPLY=()
686 ;;
687 esac
688 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
689 return 0
690 ;;
691 rsp__subcmd__settings__subcmd__help__subcmd__set)
692 opts=""
693 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
694 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
695 return 0
696 fi
697 case "${prev}" in
698 *)
699 COMPREPLY=()
700 ;;
701 esac
702 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
703 return 0
704 ;;
705 rsp__subcmd__settings__subcmd__help__subcmd__unset)
706 opts=""
707 if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
708 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
709 return 0
710 fi
711 case "${prev}" in
712 *)
713 COMPREPLY=()
714 ;;
715 esac
716 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
717 return 0
718 ;;
719 rsp__subcmd__settings__subcmd__list)
720 opts="-h --help"
721 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
722 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
723 return 0
724 fi
725 case "${prev}" in
726 *)
727 COMPREPLY=()
728 ;;
729 esac
730 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
731 return 0
732 ;;
733 rsp__subcmd__settings__subcmd__set)
734 opts="-h --help <KEY> <VALUE>"
735 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
736 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
737 return 0
738 fi
739 case "${prev}" in
740 *)
741 COMPREPLY=()
742 ;;
743 esac
744 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
745 return 0
746 ;;
747 rsp__subcmd__settings__subcmd__unset)
748 opts="-h --help <KEY>"
749 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
750 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
751 return 0
752 fi
753 case "${prev}" in
754 *)
755 COMPREPLY=()
756 ;;
757 esac
758 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
759 return 0
760 ;;
761 rsp__subcmd__shuffle)
762 opts="-h --help [MODE]"
763 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
764 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
765 return 0
766 fi
767 case "${prev}" in
768 *)
769 COMPREPLY=( $(compgen -W "on off all none album albums" -- "${cur}") )
770 return 0
771 ;;
772 esac
773 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
774 return 0
775 ;;
776 rsp__subcmd__start__subcmd__daemon)
777 opts="-h --help"
778 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
779 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
780 return 0
781 fi
782 case "${prev}" in
783 *)
784 COMPREPLY=()
785 ;;
786 esac
787 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
788 return 0
789 ;;
790 rsp__subcmd__status)
791 opts="-h --help"
792 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
793 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
794 return 0
795 fi
796 case "${prev}" in
797 *)
798 COMPREPLY=()
799 ;;
800 esac
801 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
802 return 0
803 ;;
804 rsp__subcmd__stop)
805 opts="-h --help"
806 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
807 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
808 return 0
809 fi
810 case "${prev}" in
811 *)
812 COMPREPLY=()
813 ;;
814 esac
815 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
816 return 0
817 ;;
818 rsp__subcmd__stop__subcmd__daemon)
819 opts="-h --help"
820 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
821 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
822 return 0
823 fi
824 case "${prev}" in
825 *)
826 COMPREPLY=()
827 ;;
828 esac
829 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
830 return 0
831 ;;
832 rsp__subcmd__toggle)
833 opts="-h --help"
834 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
835 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
836 return 0
837 fi
838 case "${prev}" in
839 *)
840 COMPREPLY=()
841 ;;
842 esac
843 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
844 return 0
845 ;;
846 rsp__subcmd__volume)
847 opts="-h --help [LEVEL]"
848 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
849 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
850 return 0
851 fi
852 case "${prev}" in
853 *)
854 COMPREPLY=()
855 ;;
856 esac
857 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
858 return 0
859 ;;
860 esac
861}
862
863if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
864 complete -F _rsp -o nosort -o bashdefault -o default rsp
865else
866 complete -F _rsp -o bashdefault -o default rsp
867fi