From b5872054f641bb417bd1ffc6a9ded1d95181b943 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 26 May 2026 07:01:40 +0200 Subject: no need to ship completions anymore! --- completions/rsp.bash | 867 --------------------------------------------------- completions/rsp.fish | 100 ------ completions/rsp.zsh | 632 ------------------------------------- 3 files changed, 1599 deletions(-) delete mode 100644 completions/rsp.bash delete mode 100644 completions/rsp.fish delete mode 100644 completions/rsp.zsh (limited to 'completions') 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 @@ -_rsp() { - local i cur prev opts cmd - COMPREPLY=() - if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then - cur="$2" - else - cur="${COMP_WORDS[COMP_CWORD]}" - fi - prev="$3" - cmd="" - opts="" - - for i in "${COMP_WORDS[@]:0:COMP_CWORD}" - do - case "${cmd},${i}" in - ",$1") - cmd="rsp" - ;; - rsp,help) - cmd="rsp__subcmd__help" - ;; - rsp,next) - cmd="rsp__subcmd__next" - ;; - rsp,pause) - cmd="rsp__subcmd__pause" - ;; - rsp,play) - cmd="rsp__subcmd__play" - ;; - rsp,previous) - cmd="rsp__subcmd__previous" - ;; - rsp,queue) - cmd="rsp__subcmd__queue" - ;; - rsp,restart) - cmd="rsp__subcmd__restart" - ;; - rsp,resume) - cmd="rsp__subcmd__resume" - ;; - rsp,scan) - cmd="rsp__subcmd__scan" - ;; - rsp,settings) - cmd="rsp__subcmd__settings" - ;; - rsp,shuffle) - cmd="rsp__subcmd__shuffle" - ;; - rsp,start-daemon) - cmd="rsp__subcmd__start__subcmd__daemon" - ;; - rsp,status) - cmd="rsp__subcmd__status" - ;; - rsp,stop) - cmd="rsp__subcmd__stop" - ;; - rsp,stop-daemon) - cmd="rsp__subcmd__stop__subcmd__daemon" - ;; - rsp,toggle) - cmd="rsp__subcmd__toggle" - ;; - rsp,volume) - cmd="rsp__subcmd__volume" - ;; - rsp__subcmd__help,help) - cmd="rsp__subcmd__help__subcmd__help" - ;; - rsp__subcmd__help,next) - cmd="rsp__subcmd__help__subcmd__next" - ;; - rsp__subcmd__help,pause) - cmd="rsp__subcmd__help__subcmd__pause" - ;; - rsp__subcmd__help,play) - cmd="rsp__subcmd__help__subcmd__play" - ;; - rsp__subcmd__help,previous) - cmd="rsp__subcmd__help__subcmd__previous" - ;; - rsp__subcmd__help,queue) - cmd="rsp__subcmd__help__subcmd__queue" - ;; - rsp__subcmd__help,restart) - cmd="rsp__subcmd__help__subcmd__restart" - ;; - rsp__subcmd__help,resume) - cmd="rsp__subcmd__help__subcmd__resume" - ;; - rsp__subcmd__help,scan) - cmd="rsp__subcmd__help__subcmd__scan" - ;; - rsp__subcmd__help,settings) - cmd="rsp__subcmd__help__subcmd__settings" - ;; - rsp__subcmd__help,shuffle) - cmd="rsp__subcmd__help__subcmd__shuffle" - ;; - rsp__subcmd__help,start-daemon) - cmd="rsp__subcmd__help__subcmd__start__subcmd__daemon" - ;; - rsp__subcmd__help,status) - cmd="rsp__subcmd__help__subcmd__status" - ;; - rsp__subcmd__help,stop) - cmd="rsp__subcmd__help__subcmd__stop" - ;; - rsp__subcmd__help,stop-daemon) - cmd="rsp__subcmd__help__subcmd__stop__subcmd__daemon" - ;; - rsp__subcmd__help,toggle) - cmd="rsp__subcmd__help__subcmd__toggle" - ;; - rsp__subcmd__help,volume) - cmd="rsp__subcmd__help__subcmd__volume" - ;; - rsp__subcmd__help__subcmd__settings,get) - cmd="rsp__subcmd__help__subcmd__settings__subcmd__get" - ;; - rsp__subcmd__help__subcmd__settings,list) - cmd="rsp__subcmd__help__subcmd__settings__subcmd__list" - ;; - rsp__subcmd__help__subcmd__settings,set) - cmd="rsp__subcmd__help__subcmd__settings__subcmd__set" - ;; - rsp__subcmd__help__subcmd__settings,unset) - cmd="rsp__subcmd__help__subcmd__settings__subcmd__unset" - ;; - rsp__subcmd__settings,get) - cmd="rsp__subcmd__settings__subcmd__get" - ;; - rsp__subcmd__settings,help) - cmd="rsp__subcmd__settings__subcmd__help" - ;; - rsp__subcmd__settings,list) - cmd="rsp__subcmd__settings__subcmd__list" - ;; - rsp__subcmd__settings,set) - cmd="rsp__subcmd__settings__subcmd__set" - ;; - rsp__subcmd__settings,unset) - cmd="rsp__subcmd__settings__subcmd__unset" - ;; - rsp__subcmd__settings__subcmd__help,get) - cmd="rsp__subcmd__settings__subcmd__help__subcmd__get" - ;; - rsp__subcmd__settings__subcmd__help,help) - cmd="rsp__subcmd__settings__subcmd__help__subcmd__help" - ;; - rsp__subcmd__settings__subcmd__help,list) - cmd="rsp__subcmd__settings__subcmd__help__subcmd__list" - ;; - rsp__subcmd__settings__subcmd__help,set) - cmd="rsp__subcmd__settings__subcmd__help__subcmd__set" - ;; - rsp__subcmd__settings__subcmd__help,unset) - cmd="rsp__subcmd__settings__subcmd__help__subcmd__unset" - ;; - *) - ;; - esac - done - - case "${cmd}" in - rsp) - opts="-h --help start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help) - opts="start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__help) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__next) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__pause) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__play) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__previous) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__queue) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__restart) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__resume) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__scan) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__settings) - opts="get set list unset" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__settings__subcmd__get) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__settings__subcmd__list) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__settings__subcmd__set) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__settings__subcmd__unset) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__shuffle) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__start__subcmd__daemon) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__status) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__stop) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__stop__subcmd__daemon) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__toggle) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__help__subcmd__volume) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__next) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__pause) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__play) - opts="-i -n -h --now --next --help [QUERY]" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__previous) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__queue) - opts="-h --help [POSITION] [QUERY]" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__restart) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__resume) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__scan) - opts="-h --force --paths --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - --paths) - COMPREPLY=($(compgen -f "${cur}")) - return 0 - ;; - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings) - opts="-h --help get set list unset help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__get) - opts="-h --help " - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__help) - opts="get set list unset help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__help__subcmd__get) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__help__subcmd__help) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__help__subcmd__list) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__help__subcmd__set) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__help__subcmd__unset) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__list) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__set) - opts="-h --help " - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__settings__subcmd__unset) - opts="-h --help " - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__shuffle) - opts="-h --help [MODE]" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=( $(compgen -W "on off all none album albums" -- "${cur}") ) - return 0 - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__start__subcmd__daemon) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__status) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__stop) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__stop__subcmd__daemon) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__toggle) - opts="-h --help" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - rsp__subcmd__volume) - opts="-h --help [LEVEL]" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; - esac -} - -if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then - complete -F _rsp -o nosort -o bashdefault -o default rsp -else - complete -F _rsp -o bashdefault -o default rsp -fi 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 @@ -# Print an optspec for argparse to handle cmd's options that are independent of any subcommand. -function __fish_rsp_global_optspecs - string join \n h/help -end - -function __fish_rsp_needs_command - # Figure out if the current invocation already has a command. - set -l cmd (commandline -opc) - set -e cmd[1] - argparse -s (__fish_rsp_global_optspecs) -- $cmd 2>/dev/null - or return - if set -q argv[1] - # Also print the command, so this can be used to figure out what it is. - echo $argv[1] - return 1 - end - return 0 -end - -function __fish_rsp_using_subcommand - set -l cmd (__fish_rsp_needs_command) - test -z "$cmd" - and return 1 - contains -- $cmd[1] $argv -end - -complete -c rsp -n "__fish_rsp_needs_command" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "start-daemon" -d 'Start the daemon' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "stop-daemon" -d 'Stop the daemon' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "restart" -d 'Restart the daemon (kill existing and start new)' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "play" -d 'Play a track, album, or artist' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "pause" -d 'Pause playback' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "resume" -d 'Resume playback' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "toggle" -d 'Toggle play/pause' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "stop" -d 'Stop playback' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "next" -d 'Skip to next track' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "previous" -d 'Skip to previous track' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "volume" -d 'Set volume (0-100)' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "shuffle" -d 'Shuffle mode' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "queue" -d 'Queue management' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "status" -d 'Show player status' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "scan" -d 'Scan music paths to populate database' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "settings" -d 'Settings management' -complete -c rsp -n "__fish_rsp_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' -complete -c rsp -n "__fish_rsp_using_subcommand start-daemon" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand stop-daemon" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand restart" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand play" -s i -l now -d 'Add after current track and skip to it' -complete -c rsp -n "__fish_rsp_using_subcommand play" -s n -l next -d 'Add to queue after current track (don\'t skip)' -complete -c rsp -n "__fish_rsp_using_subcommand play" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand pause" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand resume" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand toggle" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand stop" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand next" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand previous" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand volume" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand shuffle" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand shuffle" -f -a "on off all none album albums" -d 'Shuffle mode' -complete -c rsp -n "__fish_rsp_using_subcommand queue" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand status" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand scan" -l paths -r -F -complete -c rsp -n "__fish_rsp_using_subcommand scan" -l force -complete -c rsp -n "__fish_rsp_using_subcommand scan" -s h -l help -d 'Print help' -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' -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' -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' -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' -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' -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)' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from get" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from set" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from list" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from unset" -s h -l help -d 'Print help' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "get" -d 'Get a setting value' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "set" -d 'Set a setting value' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "list" -d 'List all settings' -complete -c rsp -n "__fish_rsp_using_subcommand settings; and __fish_seen_subcommand_from help" -f -a "unset" -d 'Unset a setting' -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)' -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' -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' -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)' -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' -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' -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' -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' -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' -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' -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' -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)' -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' -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' -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' -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' -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' -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)' -complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "get" -d 'Get a setting value' -complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "set" -d 'Set a setting value' -complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "list" -d 'List all settings' -complete -c rsp -n "__fish_rsp_using_subcommand help; and __fish_seen_subcommand_from settings" -f -a "unset" -d 'Unset a setting' 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 @@ -#compdef rsp - -autoload -U is-at-least - -_rsp() { - typeset -A opt_args - typeset -a _arguments_options - local ret=1 - - if is-at-least 5.2; then - _arguments_options=(-s -S -C) - else - _arguments_options=(-s -C) - fi - - local context curcontext="$curcontext" state line - _arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -":: :_rsp_commands" \ -"*::: :->rsp" \ -&& ret=0 - case $state in - (rsp) - words=($line[1] "${words[@]}") - (( CURRENT += 1 )) - curcontext="${curcontext%:*:*}:rsp-command-$line[1]:" - case $line[1] in - (start-daemon) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(stop-daemon) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(restart) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(play) -_arguments "${_arguments_options[@]}" : \ -'-i[Add after current track and skip to it]' \ -'--now[Add after current track and skip to it]' \ -'-n[Add to queue after current track (don'\''t skip)]' \ -'--next[Add to queue after current track (don'\''t skip)]' \ -'-h[Print help]' \ -'--help[Print help]' \ -'::query:_default' \ -&& ret=0 -;; -(pause) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(resume) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(toggle) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(stop) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(next) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(previous) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(volume) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -'::level:_default' \ -&& ret=0 -;; -(shuffle) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -'::mode:(on off all none album albums)' \ -&& ret=0 -;; -(queue) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -'::position:_default' \ -'::query:_default' \ -&& ret=0 -;; -(status) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(scan) -_arguments "${_arguments_options[@]}" : \ -'*--paths=[]:PATHS:_files' \ -'--force[]' \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(settings) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -":: :_rsp__subcmd__settings_commands" \ -"*::: :->settings" \ -&& ret=0 - - case $state in - (settings) - words=($line[1] "${words[@]}") - (( CURRENT += 1 )) - curcontext="${curcontext%:*:*}:rsp-settings-command-$line[1]:" - case $line[1] in - (get) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -':key:_default' \ -&& ret=0 -;; -(set) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -':key:_default' \ -':value:_default' \ -&& ret=0 -;; -(list) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -&& ret=0 -;; -(unset) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -':key:_default' \ -&& ret=0 -;; -(help) -_arguments "${_arguments_options[@]}" : \ -":: :_rsp__subcmd__settings__subcmd__help_commands" \ -"*::: :->help" \ -&& ret=0 - - case $state in - (help) - words=($line[1] "${words[@]}") - (( CURRENT += 1 )) - curcontext="${curcontext%:*:*}:rsp-settings-help-command-$line[1]:" - case $line[1] in - (get) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(set) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(list) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(unset) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(help) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; - esac - ;; -esac -;; - esac - ;; -esac -;; -(help) -_arguments "${_arguments_options[@]}" : \ -":: :_rsp__subcmd__help_commands" \ -"*::: :->help" \ -&& ret=0 - - case $state in - (help) - words=($line[1] "${words[@]}") - (( CURRENT += 1 )) - curcontext="${curcontext%:*:*}:rsp-help-command-$line[1]:" - case $line[1] in - (start-daemon) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(stop-daemon) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(restart) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(play) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(pause) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(resume) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(toggle) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(stop) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(next) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(previous) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(volume) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(shuffle) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(queue) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(status) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(scan) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(settings) -_arguments "${_arguments_options[@]}" : \ -":: :_rsp__subcmd__help__subcmd__settings_commands" \ -"*::: :->settings" \ -&& ret=0 - - case $state in - (settings) - words=($line[1] "${words[@]}") - (( CURRENT += 1 )) - curcontext="${curcontext%:*:*}:rsp-help-settings-command-$line[1]:" - case $line[1] in - (get) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(set) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(list) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; -(unset) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; - esac - ;; -esac -;; -(help) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; - esac - ;; -esac -;; - esac - ;; -esac -} - -(( $+functions[_rsp_commands] )) || -_rsp_commands() { - local commands; commands=( -'start-daemon:Start the daemon' \ -'stop-daemon:Stop the daemon' \ -'restart:Restart the daemon (kill existing and start new)' \ -'play:Play a track, album, or artist' \ -'pause:Pause playback' \ -'resume:Resume playback' \ -'toggle:Toggle play/pause' \ -'stop:Stop playback' \ -'next:Skip to next track' \ -'previous:Skip to previous track' \ -'volume:Set volume (0-100)' \ -'shuffle:Shuffle mode' \ -'queue:Queue management' \ -'status:Show player status' \ -'scan:Scan music paths to populate database' \ -'settings:Settings management' \ -'help:Print this message or the help of the given subcommand(s)' \ - ) - _describe -t commands 'rsp commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help_commands] )) || -_rsp__subcmd__help_commands() { - local commands; commands=( -'start-daemon:Start the daemon' \ -'stop-daemon:Stop the daemon' \ -'restart:Restart the daemon (kill existing and start new)' \ -'play:Play a track, album, or artist' \ -'pause:Pause playback' \ -'resume:Resume playback' \ -'toggle:Toggle play/pause' \ -'stop:Stop playback' \ -'next:Skip to next track' \ -'previous:Skip to previous track' \ -'volume:Set volume (0-100)' \ -'shuffle:Shuffle mode' \ -'queue:Queue management' \ -'status:Show player status' \ -'scan:Scan music paths to populate database' \ -'settings:Settings management' \ -'help:Print this message or the help of the given subcommand(s)' \ - ) - _describe -t commands 'rsp help commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__help_commands] )) || -_rsp__subcmd__help__subcmd__help_commands() { - local commands; commands=() - _describe -t commands 'rsp help help commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__next_commands] )) || -_rsp__subcmd__help__subcmd__next_commands() { - local commands; commands=() - _describe -t commands 'rsp help next commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__pause_commands] )) || -_rsp__subcmd__help__subcmd__pause_commands() { - local commands; commands=() - _describe -t commands 'rsp help pause commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__play_commands] )) || -_rsp__subcmd__help__subcmd__play_commands() { - local commands; commands=() - _describe -t commands 'rsp help play commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__previous_commands] )) || -_rsp__subcmd__help__subcmd__previous_commands() { - local commands; commands=() - _describe -t commands 'rsp help previous commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__queue_commands] )) || -_rsp__subcmd__help__subcmd__queue_commands() { - local commands; commands=() - _describe -t commands 'rsp help queue commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__restart_commands] )) || -_rsp__subcmd__help__subcmd__restart_commands() { - local commands; commands=() - _describe -t commands 'rsp help restart commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__resume_commands] )) || -_rsp__subcmd__help__subcmd__resume_commands() { - local commands; commands=() - _describe -t commands 'rsp help resume commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__scan_commands] )) || -_rsp__subcmd__help__subcmd__scan_commands() { - local commands; commands=() - _describe -t commands 'rsp help scan commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__settings_commands] )) || -_rsp__subcmd__help__subcmd__settings_commands() { - local commands; commands=( -'get:Get a setting value' \ -'set:Set a setting value' \ -'list:List all settings' \ -'unset:Unset a setting' \ - ) - _describe -t commands 'rsp help settings commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__get_commands] )) || -_rsp__subcmd__help__subcmd__settings__subcmd__get_commands() { - local commands; commands=() - _describe -t commands 'rsp help settings get commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__list_commands] )) || -_rsp__subcmd__help__subcmd__settings__subcmd__list_commands() { - local commands; commands=() - _describe -t commands 'rsp help settings list commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__set_commands] )) || -_rsp__subcmd__help__subcmd__settings__subcmd__set_commands() { - local commands; commands=() - _describe -t commands 'rsp help settings set commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__settings__subcmd__unset_commands] )) || -_rsp__subcmd__help__subcmd__settings__subcmd__unset_commands() { - local commands; commands=() - _describe -t commands 'rsp help settings unset commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__shuffle_commands] )) || -_rsp__subcmd__help__subcmd__shuffle_commands() { - local commands; commands=() - _describe -t commands 'rsp help shuffle commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__start-daemon_commands] )) || -_rsp__subcmd__help__subcmd__start-daemon_commands() { - local commands; commands=() - _describe -t commands 'rsp help start-daemon commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__status_commands] )) || -_rsp__subcmd__help__subcmd__status_commands() { - local commands; commands=() - _describe -t commands 'rsp help status commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__stop_commands] )) || -_rsp__subcmd__help__subcmd__stop_commands() { - local commands; commands=() - _describe -t commands 'rsp help stop commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__stop-daemon_commands] )) || -_rsp__subcmd__help__subcmd__stop-daemon_commands() { - local commands; commands=() - _describe -t commands 'rsp help stop-daemon commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__toggle_commands] )) || -_rsp__subcmd__help__subcmd__toggle_commands() { - local commands; commands=() - _describe -t commands 'rsp help toggle commands' commands "$@" -} -(( $+functions[_rsp__subcmd__help__subcmd__volume_commands] )) || -_rsp__subcmd__help__subcmd__volume_commands() { - local commands; commands=() - _describe -t commands 'rsp help volume commands' commands "$@" -} -(( $+functions[_rsp__subcmd__next_commands] )) || -_rsp__subcmd__next_commands() { - local commands; commands=() - _describe -t commands 'rsp next commands' commands "$@" -} -(( $+functions[_rsp__subcmd__pause_commands] )) || -_rsp__subcmd__pause_commands() { - local commands; commands=() - _describe -t commands 'rsp pause commands' commands "$@" -} -(( $+functions[_rsp__subcmd__play_commands] )) || -_rsp__subcmd__play_commands() { - local commands; commands=() - _describe -t commands 'rsp play commands' commands "$@" -} -(( $+functions[_rsp__subcmd__previous_commands] )) || -_rsp__subcmd__previous_commands() { - local commands; commands=() - _describe -t commands 'rsp previous commands' commands "$@" -} -(( $+functions[_rsp__subcmd__queue_commands] )) || -_rsp__subcmd__queue_commands() { - local commands; commands=() - _describe -t commands 'rsp queue commands' commands "$@" -} -(( $+functions[_rsp__subcmd__restart_commands] )) || -_rsp__subcmd__restart_commands() { - local commands; commands=() - _describe -t commands 'rsp restart commands' commands "$@" -} -(( $+functions[_rsp__subcmd__resume_commands] )) || -_rsp__subcmd__resume_commands() { - local commands; commands=() - _describe -t commands 'rsp resume commands' commands "$@" -} -(( $+functions[_rsp__subcmd__scan_commands] )) || -_rsp__subcmd__scan_commands() { - local commands; commands=() - _describe -t commands 'rsp scan commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings_commands] )) || -_rsp__subcmd__settings_commands() { - local commands; commands=( -'get:Get a setting value' \ -'set:Set a setting value' \ -'list:List all settings' \ -'unset:Unset a setting' \ -'help:Print this message or the help of the given subcommand(s)' \ - ) - _describe -t commands 'rsp settings commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__get_commands] )) || -_rsp__subcmd__settings__subcmd__get_commands() { - local commands; commands=() - _describe -t commands 'rsp settings get commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__help_commands] )) || -_rsp__subcmd__settings__subcmd__help_commands() { - local commands; commands=( -'get:Get a setting value' \ -'set:Set a setting value' \ -'list:List all settings' \ -'unset:Unset a setting' \ -'help:Print this message or the help of the given subcommand(s)' \ - ) - _describe -t commands 'rsp settings help commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__get_commands] )) || -_rsp__subcmd__settings__subcmd__help__subcmd__get_commands() { - local commands; commands=() - _describe -t commands 'rsp settings help get commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__help_commands] )) || -_rsp__subcmd__settings__subcmd__help__subcmd__help_commands() { - local commands; commands=() - _describe -t commands 'rsp settings help help commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__list_commands] )) || -_rsp__subcmd__settings__subcmd__help__subcmd__list_commands() { - local commands; commands=() - _describe -t commands 'rsp settings help list commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__set_commands] )) || -_rsp__subcmd__settings__subcmd__help__subcmd__set_commands() { - local commands; commands=() - _describe -t commands 'rsp settings help set commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__help__subcmd__unset_commands] )) || -_rsp__subcmd__settings__subcmd__help__subcmd__unset_commands() { - local commands; commands=() - _describe -t commands 'rsp settings help unset commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__list_commands] )) || -_rsp__subcmd__settings__subcmd__list_commands() { - local commands; commands=() - _describe -t commands 'rsp settings list commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__set_commands] )) || -_rsp__subcmd__settings__subcmd__set_commands() { - local commands; commands=() - _describe -t commands 'rsp settings set commands' commands "$@" -} -(( $+functions[_rsp__subcmd__settings__subcmd__unset_commands] )) || -_rsp__subcmd__settings__subcmd__unset_commands() { - local commands; commands=() - _describe -t commands 'rsp settings unset commands' commands "$@" -} -(( $+functions[_rsp__subcmd__shuffle_commands] )) || -_rsp__subcmd__shuffle_commands() { - local commands; commands=() - _describe -t commands 'rsp shuffle commands' commands "$@" -} -(( $+functions[_rsp__subcmd__start-daemon_commands] )) || -_rsp__subcmd__start-daemon_commands() { - local commands; commands=() - _describe -t commands 'rsp start-daemon commands' commands "$@" -} -(( $+functions[_rsp__subcmd__status_commands] )) || -_rsp__subcmd__status_commands() { - local commands; commands=() - _describe -t commands 'rsp status commands' commands "$@" -} -(( $+functions[_rsp__subcmd__stop_commands] )) || -_rsp__subcmd__stop_commands() { - local commands; commands=() - _describe -t commands 'rsp stop commands' commands "$@" -} -(( $+functions[_rsp__subcmd__stop-daemon_commands] )) || -_rsp__subcmd__stop-daemon_commands() { - local commands; commands=() - _describe -t commands 'rsp stop-daemon commands' commands "$@" -} -(( $+functions[_rsp__subcmd__toggle_commands] )) || -_rsp__subcmd__toggle_commands() { - local commands; commands=() - _describe -t commands 'rsp toggle commands' commands "$@" -} -(( $+functions[_rsp__subcmd__volume_commands] )) || -_rsp__subcmd__volume_commands() { - local commands; commands=() - _describe -t commands 'rsp volume commands' commands "$@" -} - -if [ "$funcstack[1]" = "_rsp" ]; then - _rsp "$@" -else - compdef _rsp rsp -fi -- cgit v1.2.3