diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2022-04-11 00:18:04 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2022-04-11 00:18:04 +0200 |
commit | 31bcc5c263aea983e967426e2b94269e7605dcd4 (patch) | |
tree | 7b48ad9d7799afe09b7d7d8adc980bd5db935bdf /Completion/Unix/Command/_dropbox | |
parent | 5086b5356abcef8849dc8a09902b7c55f01db3c0 (diff) | |
parent | b09f4483416c54c1782824633dfabaf2ec0265b6 (diff) | |
download | zsh-31bcc5c263aea983e967426e2b94269e7605dcd4.tar.gz zsh-31bcc5c263aea983e967426e2b94269e7605dcd4.zip |
Update upstream source from tag 'upstream/5.8.1.2-test'
Update to upstream version '5.8.1.2-test'
with Debian dir b380d582bf51cd93149e4dea28fffa1ad85db4f5
Diffstat (limited to 'Completion/Unix/Command/_dropbox')
-rw-r--r-- | Completion/Unix/Command/_dropbox | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_dropbox b/Completion/Unix/Command/_dropbox new file mode 100644 index 000000000..45c77ae09 --- /dev/null +++ b/Completion/Unix/Command/_dropbox @@ -0,0 +1,66 @@ +#compdef dropbox + +if [[ CURRENT -eq 2 || $words[2] = help ]]; then + local -a line progs + + _call_program command dropbox help | + while read -A line; do + if [[ $line[1] = [a-z]## ]]; then + progs+=("${line[1]}:${line[2,-1]}") + fi + done + + _describe -t command 'Dropbox command' progs +else + local -a opts + + case $words[2] in + (exclude) + _path_files -g '*(/)' + ;; + + (filestatus) + shift words + (( CURRENT-- )) + _arguments -s : \ + '(-l --list)'{-l,--list}'[use format like ls]' \ + '(-a --all)'{-a,--all}'[do not ignore entries starting .]' \ + '*:File to list:_files' + ;; + + (ls|puburl|sharelink) + _files + ;; + + (autostart|lansync) + opts=("y:turn $words[2] on" "n:turn $words[2] off") + _describe "$words[2] behaviour" opts + ;; + + (proxy) + _arguments \ + '2:proxy mode:(none auto manual)' \ + '3:proxy type for manual mode:(http socks4 socks5)' \ + '4:proxy host for manual mode:_hosts' \ + '5:proxy port for manual mode:_ports' \ + '6:proxy user for manual mode:_users' \ + '7:proxy password for manual mode:' + ;; + + (start) + shift words + (( CURRENT-- )) + _arguments -s : '(-i --install)'{-i,--install}'[auto install dropboxd]' + ;; + + (throttle) + _arguments \ + '2:download limit (KB/s):(unlimited)' \ + '3:upload limit (KB/s):(unlimited)' + ;; + + (*) + _default + ;; + esac +fi |