aboutsummaryrefslogtreecommitdiffstats
path: root/completions/rsp.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'completions/rsp.zsh')
-rw-r--r--completions/rsp.zsh632
1 files changed, 0 insertions, 632 deletions
diff --git a/completions/rsp.zsh b/completions/rsp.zsh
deleted file mode 100644
index 87fbfcd..0000000
--- a/completions/rsp.zsh
+++ /dev/null
@@ -1,632 +0,0 @@
1#compdef rsp
2
3autoload -U is-at-least
4
5_rsp() {
6 typeset -A opt_args
7 typeset -a _arguments_options
8 local ret=1
9
10 if is-at-least 5.2; then
11 _arguments_options=(-s -S -C)
12 else
13 _arguments_options=(-s -C)
14 fi
15
16 local context curcontext="$curcontext" state line
17 _arguments "${_arguments_options[@]}" : \
18'-h[Print help]' \
19'--help[Print help]' \
20":: :_rsp_commands" \
21"*::: :->rsp" \
22&& ret=0
23 case $state in
24 (rsp)
25 words=($line[1] "${words[@]}")
26 (( CURRENT += 1 ))
27 curcontext="${curcontext%:*:*}:rsp-command-$line[1]:"
28 case $line[1] in
29 (start-daemon)
30_arguments "${_arguments_options[@]}" : \
31'-h[Print help]' \
32'--help[Print help]' \
33&& ret=0
34;;
35(stop-daemon)
36_arguments "${_arguments_options[@]}" : \
37'-h[Print help]' \
38'--help[Print help]' \
39&& ret=0
40;;
41(restart)
42_arguments "${_arguments_options[@]}" : \
43'-h[Print help]' \
44'--help[Print help]' \
45&& ret=0
46;;
47(play)
48_arguments "${_arguments_options[@]}" : \
49'-i[Add after current track and skip to it]' \
50'--now[Add after current track and skip to it]' \
51'-n[Add to queue after current track (don'\''t skip)]' \
52'--next[Add to queue after current track (don'\''t skip)]' \
53'-h[Print help]' \
54'--help[Print help]' \
55'::query:_default' \
56&& ret=0
57;;
58(pause)
59_arguments "${_arguments_options[@]}" : \
60'-h[Print help]' \
61'--help[Print help]' \
62&& ret=0
63;;
64(resume)
65_arguments "${_arguments_options[@]}" : \
66'-h[Print help]' \
67'--help[Print help]' \
68&& ret=0
69;;
70(toggle)
71_arguments "${_arguments_options[@]}" : \
72'-h[Print help]' \
73'--help[Print help]' \
74&& ret=0
75;;
76(stop)
77_arguments "${_arguments_options[@]}" : \
78'-h[Print help]' \
79'--help[Print help]' \
80&& ret=0
81;;
82(next)
83_arguments "${_arguments_options[@]}" : \
84'-h[Print help]' \
85'--help[Print help]' \
86&& ret=0
87;;
88(previous)
89_arguments "${_arguments_options[@]}" : \
90'-h[Print help]' \
91'--help[Print help]' \
92&& ret=0
93;;
94(volume)
95_arguments "${_arguments_options[@]}" : \
96'-h[Print help]' \
97'--help[Print help]' \
98'::level:_default' \
99&& ret=0
100;;
101(shuffle)
102_arguments "${_arguments_options[@]}" : \
103'-h[Print help]' \
104'--help[Print help]' \
105'::mode:(on off all none album albums)' \
106&& ret=0
107;;
108(queue)
109_arguments "${_arguments_options[@]}" : \
110'-h[Print help]' \
111'--help[Print help]' \
112'::position:_default' \
113'::query:_default' \
114&& ret=0
115;;
116(status)
117_arguments "${_arguments_options[@]}" : \
118'-h[Print help]' \
119'--help[Print help]' \
120&& ret=0
121;;
122(scan)
123_arguments "${_arguments_options[@]}" : \
124'*--paths=[]:PATHS:_files' \
125'--force[]' \
126'-h[Print help]' \
127'--help[Print help]' \
128&& ret=0
129;;
130(settings)
131_arguments "${_arguments_options[@]}" : \
132'-h[Print help]' \
133'--help[Print help]' \
134":: :_rsp__subcmd__settings_commands" \
135"*::: :->settings" \
136&& ret=0
137
138 case $state in
139 (settings)
140 words=($line[1] "${words[@]}")
141 (( CURRENT += 1 ))
142 curcontext="${curcontext%:*:*}:rsp-settings-command-$line[1]:"
143 case $line[1] in
144 (get)
145_arguments "${_arguments_options[@]}" : \
146'-h[Print help]' \
147'--help[Print help]' \
148':key:_default' \
149&& ret=0
150;;
151(set)
152_arguments "${_arguments_options[@]}" : \
153'-h[Print help]' \
154'--help[Print help]' \
155':key:_default' \
156':value:_default' \
157&& ret=0
158;;
159(list)
160_arguments "${_arguments_options[@]}" : \
161'-h[Print help]' \
162'--help[Print help]' \
163&& ret=0
164;;
165(unset)
166_arguments "${_arguments_options[@]}" : \
167'-h[Print help]' \
168'--help[Print help]' \
169':key:_default' \
170&& ret=0
171;;
172(help)
173_arguments "${_arguments_options[@]}" : \
174":: :_rsp__subcmd__settings__subcmd__help_commands" \
175"*::: :->help" \
176&& ret=0
177
178 case $state in
179 (help)
180 words=($line[1] "${words[@]}")
181 (( CURRENT += 1 ))
182 curcontext="${curcontext%:*:*}:rsp-settings-help-command-$line[1]:"
183 case $line[1] in
184 (get)
185_arguments "${_arguments_options[@]}" : \
186&& ret=0
187;;
188(set)
189_arguments "${_arguments_options[@]}" : \
190&& ret=0
191;;
192(list)
193_arguments "${_arguments_options[@]}" : \
194&& ret=0
195;;
196(unset)
197_arguments "${_arguments_options[@]}" : \
198&& ret=0
199;;
200(help)
201_arguments "${_arguments_options[@]}" : \
202&& ret=0
203;;
204 esac
205 ;;
206esac
207;;
208 esac
209 ;;
210esac
211;;
212(help)
213_arguments "${_arguments_options[@]}" : \
214":: :_rsp__subcmd__help_commands" \
215"*::: :->help" \
216&& ret=0
217
218 case $state in
219 (help)
220 words=($line[1] "${words[@]}")
221 (( CURRENT += 1 ))
222 curcontext="${curcontext%:*:*}:rsp-help-command-$line[1]:"
223 case $line[1] in
224 (start-daemon)
225_arguments "${_arguments_options[@]}" : \
226&& ret=0
227;;
228(stop-daemon)
229_arguments "${_arguments_options[@]}" : \
230&& ret=0
231;;
232(restart)
233_arguments "${_arguments_options[@]}" : \
234&& ret=0
235;;
236(play)
237_arguments "${_arguments_options[@]}" : \
238&& ret=0
239;;
240(pause)
241_arguments "${_arguments_options[@]}" : \
242&& ret=0
243;;
244(resume)
245_arguments "${_arguments_options[@]}" : \
246&& ret=0
247;;
248(toggle)
249_arguments "${_arguments_options[@]}" : \
250&& ret=0
251;;
252(stop)
253_arguments "${_arguments_options[@]}" : \
254&& ret=0
255;;
256(next)
257_arguments "${_arguments_options[@]}" : \
258&& ret=0
259;;
260(previous)
261_arguments "${_arguments_options[@]}" : \
262&& ret=0
263;;
264(volume)
265_arguments "${_arguments_options[@]}" : \
266&& ret=0
267;;
268(shuffle)
269_arguments "${_arguments_options[@]}" : \
270&& ret=0
271;;
272(queue)
273_arguments "${_arguments_options[@]}" : \
274&& ret=0
275;;
276(status)
277_arguments "${_arguments_options[@]}" : \
278&& ret=0
279;;
280(scan)
281_arguments "${_arguments_options[@]}" : \
282&& ret=0
283;;
284(settings)
285_arguments "${_arguments_options[@]}" : \
286":: :_rsp__subcmd__help__subcmd__settings_commands" \
287"*::: :->settings" \
288&& ret=0
289
290 case $state in
291 (settings)
292 words=($line[1] "${words[@]}")
293 (( CURRENT += 1 ))
294 curcontext="${curcontext%:*:*}:rsp-help-settings-command-$line[1]:"
295 case $line[1] in
296 (get)
297_arguments "${_arguments_options[@]}" : \
298&& ret=0
299;;
300(set)
301_arguments "${_arguments_options[@]}" : \
302&& ret=0
303;;
304(list)
305_arguments "${_arguments_options[@]}" : \
306&& ret=0
307;;
308(unset)
309_arguments "${_arguments_options[@]}" : \
310&& ret=0
311;;
312 esac
313 ;;
314esac
315;;
316(help)
317_arguments "${_arguments_options[@]}" : \
318&& ret=0
319;;
320 esac
321 ;;
322esac
323;;
324 esac
325 ;;
326esac
327}
328
329(( $+functions[_rsp_commands] )) ||
330_rsp_commands() {
331 local commands; commands=(
332'start-daemon:Start the daemon' \
333'stop-daemon:Stop the daemon' \
334'restart:Restart the daemon (kill existing and start new)' \
335'play:Play a track, album, or artist' \
336'pause:Pause playback' \
337'resume:Resume playback' \
338'toggle:Toggle play/pause' \
339'stop:Stop playback' \
340'next:Skip to next track' \
341'previous:Skip to previous track' \
342'volume:Set volume (0-100)' \
343'shuffle:Shuffle mode' \
344'queue:Queue management' \
345'status:Show player status' \
346'scan:Scan music paths to populate database' \
347'settings:Settings management' \
348'help:Print this message or the help of the given subcommand(s)' \
349 )
350 _describe -t commands 'rsp commands' commands "$@"
351}
352(( $+functions[_rsp__subcmd__help_commands] )) ||
353_rsp__subcmd__help_commands() {
354 local commands; commands=(
355'start-daemon:Start the daemon' \
356'stop-daemon:Stop the daemon' \
357'restart:Restart the daemon (kill existing and start new)' \
358'play:Play a track, album, or artist' \
359'pause:Pause playback' \
360'resume:Resume playback' \
361'toggle:Toggle play/pause' \
362'stop:Stop playback' \
363'next:Skip to next track' \
364'previous:Skip to previous track' \
365'volume:Set volume (0-100)' \
366'shuffle:Shuffle mode' \
367'queue:Queue management' \
368'status:Show player status' \
369'scan:Scan music paths to populate database' \
370'settings:Settings management' \
371'help:Print this message or the help of the given subcommand(s)' \
372 )
373 _describe -t commands 'rsp help commands' commands "$@"
374}
375(( $+functions[_rsp__subcmd__help__subcmd__help_commands] )) ||
376_rsp__subcmd__help__subcmd__help_commands() {
377 local commands; commands=()
378 _describe -t commands 'rsp help help commands' commands "$@"
379}
380(( $+functions[_rsp__subcmd__help__subcmd__next_commands] )) ||
381_rsp__subcmd__help__subcmd__next_commands() {
382 local commands; commands=()
383 _describe -t commands 'rsp help next commands' commands "$@"
384}
385(( $+functions[_rsp__subcmd__help__subcmd__pause_commands] )) ||
386_rsp__subcmd__help__subcmd__pause_commands() {
387 local commands; commands=()
388 _describe -t commands 'rsp help pause commands' commands "$@"
389}
390(( $+functions[_rsp__subcmd__help__subcmd__play_commands] )) ||
391_rsp__subcmd__help__subcmd__play_commands() {
392 local commands; commands=()
393 _describe -t commands 'rsp help play commands' commands "$@"
394}
395(( $+functions[_rsp__subcmd__help__subcmd__previous_commands] )) ||
396_rsp__subcmd__help__subcmd__previous_commands() {
397 local commands; commands=()
398 _describe -t commands 'rsp help previous commands' commands "$@"
399}
400(( $+functions[_rsp__subcmd__help__subcmd__queue_commands] )) ||
401_rsp__subcmd__help__subcmd__queue_commands() {
402 local commands; commands=()
403 _describe -t commands 'rsp help queue commands' commands "$@"
404}
405(( $+functions[_rsp__subcmd__help__subcmd__restart_commands] )) ||
406_rsp__subcmd__help__subcmd__restart_commands() {
407 local commands; commands=()
408 _describe -t commands 'rsp help restart commands' commands "$@"
409}
410(( $+functions[_rsp__subcmd__help__subcmd__resume_commands] )) ||
411_rsp__subcmd__help__subcmd__resume_commands() {
412 local commands; commands=()
413 _describe -t commands 'rsp help resume commands' commands "$@"
414}
415(( $+functions[_rsp__subcmd__help__subcmd__scan_commands] )) ||
416_rsp__subcmd__help__subcmd__scan_commands() {
417 local commands; commands=()
418 _describe -t commands 'rsp help scan commands' commands "$@"
419}
420(( $+functions[_rsp__subcmd__help__subcmd__settings_commands] )) ||
421_rsp__subcmd__help__subcmd__settings_commands() {
422 local commands; commands=(
423'get:Get a setting value' \
424'set:Set a setting value' \
425'list:List all settings' \
426'unset:Unset a setting' \
427 )
428 _describe -t commands 'rsp help settings commands' commands "$@"
429}
430(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__get_commands] )) ||
431_rsp__subcmd__help__subcmd__settings__subcmd__get_commands() {
432 local commands; commands=()
433 _describe -t commands 'rsp help settings get commands' commands "$@"
434}
435(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__list_commands] )) ||
436_rsp__subcmd__help__subcmd__settings__subcmd__list_commands() {
437 local commands; commands=()
438 _describe -t commands 'rsp help settings list commands' commands "$@"
439}
440(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__set_commands] )) ||
441_rsp__subcmd__help__subcmd__settings__subcmd__set_commands() {
442 local commands; commands=()
443 _describe -t commands 'rsp help settings set commands' commands "$@"
444}
445(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__unset_commands] )) ||
446_rsp__subcmd__help__subcmd__settings__subcmd__unset_commands() {
447 local commands; commands=()
448 _describe -t commands 'rsp help settings unset commands' commands "$@"
449}
450(( $+functions[_rsp__subcmd__help__subcmd__shuffle_commands] )) ||
451_rsp__subcmd__help__subcmd__shuffle_commands() {
452 local commands; commands=()
453 _describe -t commands 'rsp help shuffle commands' commands "$@"
454}
455(( $+functions[_rsp__subcmd__help__subcmd__start-daemon_commands] )) ||
456_rsp__subcmd__help__subcmd__start-daemon_commands() {
457 local commands; commands=()
458 _describe -t commands 'rsp help start-daemon commands' commands "$@"
459}
460(( $+functions[_rsp__subcmd__help__subcmd__status_commands] )) ||
461_rsp__subcmd__help__subcmd__status_commands() {
462 local commands; commands=()
463 _describe -t commands 'rsp help status commands' commands "$@"
464}
465(( $+functions[_rsp__subcmd__help__subcmd__stop_commands] )) ||
466_rsp__subcmd__help__subcmd__stop_commands() {
467 local commands; commands=()
468 _describe -t commands 'rsp help stop commands' commands "$@"
469}
470(( $+functions[_rsp__subcmd__help__subcmd__stop-daemon_commands] )) ||
471_rsp__subcmd__help__subcmd__stop-daemon_commands() {
472 local commands; commands=()
473 _describe -t commands 'rsp help stop-daemon commands' commands "$@"
474}
475(( $+functions[_rsp__subcmd__help__subcmd__toggle_commands] )) ||
476_rsp__subcmd__help__subcmd__toggle_commands() {
477 local commands; commands=()
478 _describe -t commands 'rsp help toggle commands' commands "$@"
479}
480(( $+functions[_rsp__subcmd__help__subcmd__volume_commands] )) ||
481_rsp__subcmd__help__subcmd__volume_commands() {
482 local commands; commands=()
483 _describe -t commands 'rsp help volume commands' commands "$@"
484}
485(( $+functions[_rsp__subcmd__next_commands] )) ||
486_rsp__subcmd__next_commands() {
487 local commands; commands=()
488 _describe -t commands 'rsp next commands' commands "$@"
489}
490(( $+functions[_rsp__subcmd__pause_commands] )) ||
491_rsp__subcmd__pause_commands() {
492 local commands; commands=()
493 _describe -t commands 'rsp pause commands' commands "$@"
494}
495(( $+functions[_rsp__subcmd__play_commands] )) ||
496_rsp__subcmd__play_commands() {
497 local commands; commands=()
498 _describe -t commands 'rsp play commands' commands "$@"
499}
500(( $+functions[_rsp__subcmd__previous_commands] )) ||
501_rsp__subcmd__previous_commands() {
502 local commands; commands=()
503 _describe -t commands 'rsp previous commands' commands "$@"
504}
505(( $+functions[_rsp__subcmd__queue_commands] )) ||
506_rsp__subcmd__queue_commands() {
507 local commands; commands=()
508 _describe -t commands 'rsp queue commands' commands "$@"
509}
510(( $+functions[_rsp__subcmd__restart_commands] )) ||
511_rsp__subcmd__restart_commands() {
512 local commands; commands=()
513 _describe -t commands 'rsp restart commands' commands "$@"
514}
515(( $+functions[_rsp__subcmd__resume_commands] )) ||
516_rsp__subcmd__resume_commands() {
517 local commands; commands=()
518 _describe -t commands 'rsp resume commands' commands "$@"
519}
520(( $+functions[_rsp__subcmd__scan_commands] )) ||
521_rsp__subcmd__scan_commands() {
522 local commands; commands=()
523 _describe -t commands 'rsp scan commands' commands "$@"
524}
525(( $+functions[_rsp__subcmd__settings_commands] )) ||
526_rsp__subcmd__settings_commands() {
527 local commands; commands=(
528'get:Get a setting value' \
529'set:Set a setting value' \
530'list:List all settings' \
531'unset:Unset a setting' \
532'help:Print this message or the help of the given subcommand(s)' \
533 )
534 _describe -t commands 'rsp settings commands' commands "$@"
535}
536(( $+functions[_rsp__subcmd__settings__subcmd__get_commands] )) ||
537_rsp__subcmd__settings__subcmd__get_commands() {
538 local commands; commands=()
539 _describe -t commands 'rsp settings get commands' commands "$@"
540}
541(( $+functions[_rsp__subcmd__settings__subcmd__help_commands] )) ||
542_rsp__subcmd__settings__subcmd__help_commands() {
543 local commands; commands=(
544'get:Get a setting value' \
545'set:Set a setting value' \
546'list:List all settings' \
547'unset:Unset a setting' \
548'help:Print this message or the help of the given subcommand(s)' \
549 )
550 _describe -t commands 'rsp settings help commands' commands "$@"
551}
552(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__get_commands] )) ||
553_rsp__subcmd__settings__subcmd__help__subcmd__get_commands() {
554 local commands; commands=()
555 _describe -t commands 'rsp settings help get commands' commands "$@"
556}
557(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__help_commands] )) ||
558_rsp__subcmd__settings__subcmd__help__subcmd__help_commands() {
559 local commands; commands=()
560 _describe -t commands 'rsp settings help help commands' commands "$@"
561}
562(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__list_commands] )) ||
563_rsp__subcmd__settings__subcmd__help__subcmd__list_commands() {
564 local commands; commands=()
565 _describe -t commands 'rsp settings help list commands' commands "$@"
566}
567(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__set_commands] )) ||
568_rsp__subcmd__settings__subcmd__help__subcmd__set_commands() {
569 local commands; commands=()
570 _describe -t commands 'rsp settings help set commands' commands "$@"
571}
572(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__unset_commands] )) ||
573_rsp__subcmd__settings__subcmd__help__subcmd__unset_commands() {
574 local commands; commands=()
575 _describe -t commands 'rsp settings help unset commands' commands "$@"
576}
577(( $+functions[_rsp__subcmd__settings__subcmd__list_commands] )) ||
578_rsp__subcmd__settings__subcmd__list_commands() {
579 local commands; commands=()
580 _describe -t commands 'rsp settings list commands' commands "$@"
581}
582(( $+functions[_rsp__subcmd__settings__subcmd__set_commands] )) ||
583_rsp__subcmd__settings__subcmd__set_commands() {
584 local commands; commands=()
585 _describe -t commands 'rsp settings set commands' commands "$@"
586}
587(( $+functions[_rsp__subcmd__settings__subcmd__unset_commands] )) ||
588_rsp__subcmd__settings__subcmd__unset_commands() {
589 local commands; commands=()
590 _describe -t commands 'rsp settings unset commands' commands "$@"
591}
592(( $+functions[_rsp__subcmd__shuffle_commands] )) ||
593_rsp__subcmd__shuffle_commands() {
594 local commands; commands=()
595 _describe -t commands 'rsp shuffle commands' commands "$@"
596}
597(( $+functions[_rsp__subcmd__start-daemon_commands] )) ||
598_rsp__subcmd__start-daemon_commands() {
599 local commands; commands=()
600 _describe -t commands 'rsp start-daemon commands' commands "$@"
601}
602(( $+functions[_rsp__subcmd__status_commands] )) ||
603_rsp__subcmd__status_commands() {
604 local commands; commands=()
605 _describe -t commands 'rsp status commands' commands "$@"
606}
607(( $+functions[_rsp__subcmd__stop_commands] )) ||
608_rsp__subcmd__stop_commands() {
609 local commands; commands=()
610 _describe -t commands 'rsp stop commands' commands "$@"
611}
612(( $+functions[_rsp__subcmd__stop-daemon_commands] )) ||
613_rsp__subcmd__stop-daemon_commands() {
614 local commands; commands=()
615 _describe -t commands 'rsp stop-daemon commands' commands "$@"
616}
617(( $+functions[_rsp__subcmd__toggle_commands] )) ||
618_rsp__subcmd__toggle_commands() {
619 local commands; commands=()
620 _describe -t commands 'rsp toggle commands' commands "$@"
621}
622(( $+functions[_rsp__subcmd__volume_commands] )) ||
623_rsp__subcmd__volume_commands() {
624 local commands; commands=()
625 _describe -t commands 'rsp volume commands' commands "$@"
626}
627
628if [ "$funcstack[1]" = "_rsp" ]; then
629 _rsp "$@"
630else
631 compdef _rsp rsp
632fi