summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_twidge
diff options
context:
space:
mode:
authordana <dana@dana.is>2026-06-30 19:19:13 -0500
committerdana <dana@dana.is>2026-07-03 07:02:41 -0500
commitb39c9fa22dd59879acaf3da30e0a905c03ae2782 (patch)
tree9a6a4614a129e618544f26abd40ca041ee3b03aa /Completion/Unix/Command/_twidge
parent54889: comparguments: always parse optargs as optargs (diff)
downloadzsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.tar
zsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.tar.gz
zsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.tar.bz2
zsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.tar.lz
zsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.tar.xz
zsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.tar.zst
zsh-b39c9fa22dd59879acaf3da30e0a905c03ae2782.zip
54891: completion: remove obsolete functions
Diffstat (limited to 'Completion/Unix/Command/_twidge')
-rw-r--r--Completion/Unix/Command/_twidge77
1 files changed, 0 insertions, 77 deletions
diff --git a/Completion/Unix/Command/_twidge b/Completion/Unix/Command/_twidge
deleted file mode 100644
index d8b3b3def..000000000
--- a/Completion/Unix/Command/_twidge
+++ /dev/null
@@ -1,77 +0,0 @@
-#compdef twidge
-## completion for twidge 1.0.8, based on twidge(1)
-
-function _twidge_command {
- typeset -a twidge_commands
- typeset -i skip=1
-
- twidge lscommands | while read cmd desc; do
- if [[ $cmd == ---* ]] {
- skip=0
- continue
- }
- if (( skip )) {
- continue
- }
- twidge_commands+="${cmd}:${desc}"
- done
-
- _describe command twidge_commands
-}
-
-function _twidge_args {
- typeset -a args_common args_more args_other args_update
-
- args_common=(
- '(-a --all)'{-a,--all}'[receive all content]'
- '(-e --exec)'{-e,--exec}'[execute command for each retrieved item]:command'
- '(-l --long)'{-l,--long}'[long output format]'
- '(-m --mailto)'{-m,--mailto}'[mail retrieved items]:mail address'
- )
-
- args_more=(
- '(-s --saveid)'{-s,--saveid}'[save ID of most recent message]'
- '(-u --unseen)'{-u,--unseen}'[only show unseen messages]'
- )
-
- args_other=(
- '(-U --username)'{-U,--username}'[show updates of different user]:username'
- )
-
- args_update=(
- '(-i --inreplyto)'{-i,--inreplyto}'[update in reply to a message]:message id'
- '(-i --inreplyto 1)-r[read RFC2822 Mail]'
- ':status'
- )
-
- case ${words[1]} in
- lsarchive)
- _arguments $args_common $args_more $args_other
- ;;
- ls(dm(|archive)|recent|replies|rt(|archive|replies)))
- _arguments $args_common $args_more
- ;;
- lsfollow(ers|ing))
- _arguments $args_common :username
- ;;
- dmsend)
- _arguments :recipient :status
- ;;
- (un|)follow)
- _message username
- ;;
- update)
- _arguments $args_update
- ;;
- esac
-}
-
-function _twidge {
- _arguments \
- '(-c --config)'{-c,--config}'[config file]:file:_files' \
- '(-d --debug)'{-d,--debug}'[enable debugging output]' \
- '(-): :_twidge_command' \
- '(-)*:: :_twidge_args'
-}
-
-_twidge "$@"