diff options
Diffstat (limited to 'completions/rsp.fish')
| -rw-r--r-- | completions/rsp.fish | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/completions/rsp.fish b/completions/rsp.fish deleted file mode 100644 index 56f3766..0000000 --- a/completions/rsp.fish +++ /dev/null | |||
| @@ -1,100 +0,0 @@ | |||
| 1 | # Print an optspec for argparse to handle cmd's options that are independent of any subcommand. | ||
| 2 | function __fish_rsp_global_optspecs | ||
| 3 | string join \n h/help | ||
| 4 | end | ||
| 5 | |||
| 6 | function __fish_rsp_needs_command | ||
| 7 | # Figure out if the current invocation already has a command. | ||
| 8 | set -l cmd (commandline -opc) | ||
| 9 | set -e cmd[1] | ||
| 10 | argparse -s (__fish_rsp_global_optspecs) -- $cmd 2>/dev/null | ||
| 11 | or return | ||
| 12 | if set -q argv[1] | ||
| 13 | # Also print the command, so this can be used to figure out what it is. | ||
| 14 | echo $argv[1] | ||
| 15 | return 1 | ||
| 16 | end | ||
| 17 | return 0 | ||
| 18 | end | ||
| 19 | |||
| 20 | function __fish_rsp_using_subcommand | ||
| 21 | set -l cmd (__fish_rsp_needs_command) | ||
| 22 | test -z "$cmd" | ||
| 23 | and return 1 | ||
| 24 | contains -- $cmd[1] $argv | ||
| 25 | end | ||
| 26 | |||
| 27 | complete -c rsp -n "__fish_rsp_needs_command" -s h -l help -d 'Print help' | ||
| 28 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "start-daemon" -d 'Start the daemon' | ||
| 29 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "stop-daemon" -d 'Stop the daemon' | ||
| 30 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "restart" -d 'Restart the daemon (kill existing and start new)' | ||
| 31 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "play" -d 'Play a track, album, or artist' | ||
| 32 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "pause" -d 'Pause playback' | ||
| 33 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "resume" -d 'Resume playback' | ||
| 34 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "toggle" -d 'Toggle play/pause' | ||
| 35 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "stop" -d 'Stop playback' | ||
| 36 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "next" -d 'Skip to next track' | ||
| 37 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "previous" -d 'Skip to previous track' | ||
| 38 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "volume" -d 'Set volume (0-100)' | ||
| 39 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "shuffle" -d 'Shuffle mode' | ||
| 40 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "queue" -d 'Queue management' | ||
| 41 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "status" -d 'Show player status' | ||
| 42 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "scan" -d 'Scan music paths to populate database' | ||
| 43 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "settings" -d 'Settings management' | ||
| 44 | complete -c rsp -n "__fish_rsp_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' | ||
| 45 | complete -c rsp -n "__fish_rsp_using_subcommand start-daemon" -s h -l help -d 'Print help' | ||
| 46 | complete -c rsp -n "__fish_rsp_using_subcommand stop-daemon" -s h -l help -d 'Print help' | ||
| 47 | complete -c rsp -n "__fish_rsp_using_subcommand restart" -s h -l help -d 'Print help' | ||
| 48 | complete -c rsp -n "__fish_rsp_using_subcommand play" -s i -l now -d 'Add after current track and skip to it' | ||
| 49 | complete -c rsp -n "__fish_rsp_using_subcommand play" -s n -l next -d 'Add to queue after current track (don\'t skip)' | ||
| 50 | complete -c rsp -n "__fish_rsp_using_subcommand play" -s h -l help -d 'Print help' | ||
| 51 | complete -c rsp -n "__fish_rsp_using_subcommand pause" -s h -l help -d 'Print help' | ||
| 52 | complete -c rsp -n "__fish_rsp_using_subcommand resume" -s h -l help -d 'Print help' | ||
| 53 | complete -c rsp -n "__fish_rsp_using_subcommand toggle" -s h -l help -d 'Print help' | ||
| 54 | complete -c rsp -n "__fish_rsp_using_subcommand stop" -s h -l help -d 'Print help' | ||
| 55 | complete -c rsp -n "__fish_rsp_using_subcommand next" -s h -l help -d 'Print help' | ||
| 56 | complete -c rsp -n "__fish_rsp_using_subcommand previous" -s h -l help -d 'Print help' | ||
| 57 | complete -c rsp -n "__fish_rsp_using_subcommand volume" -s h -l help -d 'Print help' | ||
| 58 | complete -c rsp -n "__fish_rsp_using_subcommand shuffle" -s h -l help -d 'Print help' | ||
| 59 | complete -c rsp -n "__fish_rsp_using_subcommand shuffle" -f -a "on off all none album albums" -d 'Shuffle mode' | ||
| 60 | complete -c rsp -n "__fish_rsp_using_subcommand queue" -s h -l help -d 'Print help' | ||
| 61 | complete -c rsp -n "__fish_rsp_using_subcommand status" -s h -l help -d 'Print help' | ||
| 62 | complete -c rsp -n "__fish_rsp_using_subcommand scan" -l paths -r -F | ||
| 63 | complete -c rsp -n "__fish_rsp_using_subcommand scan" -l force | ||
| 64 | complete -c rsp -n "__fish_rsp_using_subcommand scan" -s h -l help -d 'Print help' | ||
| 65 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and not __fish_seen_subcommand_from get set list unset help" -s h -l help -d 'Print help' | ||
| 66 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and not __fish_seen_subcommand_from get set list unset help" -f -a "get" -d 'Get a setting value' | ||
| 67 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and not __fish_seen_subcommand_from get set list unset help" -f -a "set" -d 'Set a setting value' | ||
| 68 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and not __fish_seen_subcommand_from get set list unset help" -f -a "list" -d 'List all settings' | ||
| 69 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and not __fish_seen_subcommand_from get set list unset help" -f -a "unset" -d 'Unset a setting' | ||
| 70 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and not __fish_seen_subcommand_from get set list unset help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' | ||
| 71 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from get" -s h -l help -d 'Print help' | ||
| 72 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from set" -s h -l help -d 'Print help' | ||
| 73 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from list" -s h -l help -d 'Print help' | ||
| 74 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from unset" -s h -l help -d 'Print help' | ||
| 75 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "get" -d 'Get a setting value' | ||
| 76 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "set" -d 'Set a setting value' | ||
| 77 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "list" -d 'List all settings' | ||
| 78 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "unset" -d 'Unset a setting' | ||
| 79 | complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' | ||
| 80 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "start-daemon" -d 'Start the daemon' | ||
| 81 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "stop-daemon" -d 'Stop the daemon' | ||
| 82 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "restart" -d 'Restart the daemon (kill existing and start new)' | ||
| 83 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "play" -d 'Play a track, album, or artist' | ||
| 84 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "pause" -d 'Pause playback' | ||
| 85 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "resume" -d 'Resume playback' | ||
| 86 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "toggle" -d 'Toggle play/pause' | ||
| 87 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "stop" -d 'Stop playback' | ||
| 88 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "next" -d 'Skip to next track' | ||
| 89 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "previous" -d 'Skip to previous track' | ||
| 90 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "volume" -d 'Set volume (0-100)' | ||
| 91 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "shuffle" -d 'Shuffle mode' | ||
| 92 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "queue" -d 'Queue management' | ||
| 93 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "status" -d 'Show player status' | ||
| 94 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "scan" -d 'Scan music paths to populate database' | ||
| 95 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "settings" -d 'Settings management' | ||
| 96 | complete -c rsp -n "__fish_rsp_using_subcommand help; and not __fish_seen_subcommand_from start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' | ||
| 97 | complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "get" -d 'Get a setting value' | ||
| 98 | complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "set" -d 'Set a setting value' | ||
| 99 | complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "list" -d 'List all settings' | ||
| 100 | complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "unset" -d 'Unset a setting' | ||
