From 43562db0804338f2d55dff13439f1165f8dd9d3f Mon Sep 17 00:00:00 2001 From: salmonik Date: Sat, 16 May 2026 12:47:43 +0200 Subject: first public release. --- completions/rsp.zsh | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'completions/rsp.zsh') diff --git a/completions/rsp.zsh b/completions/rsp.zsh index e8da3d7..dd24572 100644 --- a/completions/rsp.zsh +++ b/completions/rsp.zsh @@ -209,13 +209,6 @@ esac ;; esac ;; -(completions) -_arguments "${_arguments_options[@]}" : \ -'-h[Print help]' \ -'--help[Print help]' \ -'::shell -- Shell to generate (bash, zsh, fish, elvish, powershell) If not specified, generates all completion files:_default' \ -&& ret=0 -;; (help) _arguments "${_arguments_options[@]}" : \ ":: :_rsp__subcmd__help_commands" \ @@ -320,10 +313,6 @@ _arguments "${_arguments_options[@]}" : \ ;; esac ;; -(completions) -_arguments "${_arguments_options[@]}" : \ -&& ret=0 -;; (help) _arguments "${_arguments_options[@]}" : \ && ret=0 @@ -356,16 +345,10 @@ _rsp_commands() { 'status:Show player status' \ 'scan:Scan music paths to populate database' \ 'settings:Settings management' \ -'completions:Generate shell completions (developer only)' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'rsp commands' commands "$@" } -(( $+functions[_rsp__subcmd__completions_commands] )) || -_rsp__subcmd__completions_commands() { - local commands; commands=() - _describe -t commands 'rsp completions commands' commands "$@" -} (( $+functions[_rsp__subcmd__help_commands] )) || _rsp__subcmd__help_commands() { local commands; commands=( @@ -385,16 +368,10 @@ _rsp__subcmd__help_commands() { 'status:Show player status' \ 'scan:Scan music paths to populate database' \ 'settings:Settings management' \ -'completions:Generate shell completions (developer only)' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'rsp help commands' commands "$@" } -(( $+functions[_rsp__subcmd__help__subcmd__completions_commands] )) || -_rsp__subcmd__help__subcmd__completions_commands() { - local commands; commands=() - _describe -t commands 'rsp help completions commands' commands "$@" -} (( $+functions[_rsp__subcmd__help__subcmd__help_commands] )) || _rsp__subcmd__help__subcmd__help_commands() { local commands; commands=() -- cgit v1.2.3