aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2026-03-15 15:14:40 +0900
committerShohei YOSHIDA <syohex@gmail.com>2026-03-15 15:14:40 +0900
commitd1180f126ada59543335b1802f7dc819b797b8fc (patch)
treed66669dd056c2661f448e255232771d0903c8149
parentMerge two switch-case (diff)
downloadzsh-completions-refactor-cask.tar
zsh-completions-refactor-cask.tar.gz
zsh-completions-refactor-cask.tar.bz2
zsh-completions-refactor-cask.tar.lz
zsh-completions-refactor-cask.tar.xz
zsh-completions-refactor-cask.tar.zst
zsh-completions-refactor-cask.zip
Add global optionsrefactor-cask
-rw-r--r--src/_cask14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/_cask b/src/_cask
index 13102a0..ff06771 100644
--- a/src/_cask
+++ b/src/_cask
@@ -46,8 +46,20 @@ function _cask() {
local curcontext="$curcontext"
_arguments -C \
+ '(--proxy --http-proxy --https-proxy)--proxy[Set emacs proxy for HTTPS and HTTPS]:host:_hosts' \
+ '(--proxy --http-proxy)--http-proxy[Set emacs proxy for HTTP]:host:_hosts' \
+ '(--proxy --https-proxy)--https-proxy[Set emacs proxy for HTTPS]:host:_hosts' \
+ '(--proxy --http-proxy --https-proxy)--proxy[Set emacs proxy for HTTPS and HTTPS]:host:_hosts' \
+ '--no-proxy[Set Emacs no-proxy to HOST]:host:_hosts' \
+ '(- *)--version[Print Cask version and exit]' \
+ '(- *)'{-h,--help}'[Display usage or information for command]::command:->subcommand' \
+ '--debug[Turn on debug output]' \
+ '--path[Run command in this PATH instead of default-directory]:dir:_files -/' \
+ '(--verbose --silent)--verbose[Be verbose and show debug output]' \
+ '(--verbose --silent)--verbose[Be slient and do not show anything]' \
':subcommand:->subcommand' \
- '*:: :->subcmds' && ret=0
+ '*:: :->subcmds' \
+ && ret=0
case $state in
(subcommand)