1919 lines
No EOL
73 KiB
Text
Vendored
1919 lines
No EOL
73 KiB
Text
Vendored
#compdef ffsend
|
|
|
|
autoload -U is-at-least
|
|
|
|
_ffsend() {
|
|
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[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
":: :_ffsend_commands" \
|
|
"*::: :->ffsend" \
|
|
&& ret=0
|
|
case $state in
|
|
(ffsend)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:ffsend-command-$line[1]:"
|
|
case $line[1] in
|
|
(dbg)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(debug)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(del)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(rm)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(delete)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(d)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Unlock a password protected file]' \
|
|
'--password=[Unlock a password protected file]' \
|
|
'-o+[Output file or directory]' \
|
|
'--output=[Output file or directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-e[Extract an archived file]' \
|
|
'--extract[Extract an archived file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(down)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Unlock a password protected file]' \
|
|
'--password=[Unlock a password protected file]' \
|
|
'-o+[Output file or directory]' \
|
|
'--output=[Output file or directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-e[Extract an archived file]' \
|
|
'--extract[Extract an archived file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(download)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Unlock a password protected file]' \
|
|
'--password=[Unlock a password protected file]' \
|
|
'-o+[Output file or directory]' \
|
|
'--output=[Output file or directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-e[Extract an archived file]' \
|
|
'--extract[Extract an archived file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(e)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(exist)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(exists)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(gen)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
":: :_ffsend__generate_commands" \
|
|
"*::: :->generate" \
|
|
&& ret=0
|
|
case $state in
|
|
(generate)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:ffsend-generate-command-$line[1]:"
|
|
case $line[1] in
|
|
(completion)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Shell completion files output directory]' \
|
|
'--output=[Shell completion files output directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':SHELL -- Shell type to generate completions for:(all zsh bash fish powershell elvish)' \
|
|
&& ret=0
|
|
;;
|
|
(complete)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Shell completion files output directory]' \
|
|
'--output=[Shell completion files output directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':SHELL -- Shell type to generate completions for:(all zsh bash fish powershell elvish)' \
|
|
&& ret=0
|
|
;;
|
|
(completions)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Shell completion files output directory]' \
|
|
'--output=[Shell completion files output directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':SHELL -- Shell type to generate completions for:(all zsh bash fish powershell elvish)' \
|
|
&& ret=0
|
|
;;
|
|
(help)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(generate)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
":: :_ffsend__generate_commands" \
|
|
"*::: :->generate" \
|
|
&& ret=0
|
|
case $state in
|
|
(generate)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:ffsend-generate-command-$line[1]:"
|
|
case $line[1] in
|
|
(completion)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Shell completion files output directory]' \
|
|
'--output=[Shell completion files output directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':SHELL -- Shell type to generate completions for:(all zsh bash fish powershell elvish)' \
|
|
&& ret=0
|
|
;;
|
|
(complete)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Shell completion files output directory]' \
|
|
'--output=[Shell completion files output directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':SHELL -- Shell type to generate completions for:(all zsh bash fish powershell elvish)' \
|
|
&& ret=0
|
|
;;
|
|
(completions)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Shell completion files output directory]' \
|
|
'--output=[Shell completion files output directory]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':SHELL -- Shell type to generate completions for:(all zsh bash fish powershell elvish)' \
|
|
&& ret=0
|
|
;;
|
|
(help)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(i)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-p+[Unlock a password protected file]' \
|
|
'--password=[Unlock a password protected file]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(information)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-p+[Unlock a password protected file]' \
|
|
'--password=[Unlock a password protected file]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(info)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-p+[Unlock a password protected file]' \
|
|
'--password=[Unlock a password protected file]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(params)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(param)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(parameter)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(parameters)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(pass)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Specify a password, do not prompt]' \
|
|
'--password=[Specify a password, do not prompt]' \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'(-p --password)-P[Protect the file with a generated passphrase]' \
|
|
'(-p --password)--gen-passphrase[Protect the file with a generated passphrase]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(p)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Specify a password, do not prompt]' \
|
|
'--password=[Specify a password, do not prompt]' \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'(-p --password)-P[Protect the file with a generated passphrase]' \
|
|
'(-p --password)--gen-passphrase[Protect the file with a generated passphrase]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(password)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Specify a password, do not prompt]' \
|
|
'--password=[Specify a password, do not prompt]' \
|
|
'-o+[Specify the file owner token]' \
|
|
'--owner=[Specify the file owner token]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'(-p --password)-P[Protect the file with a generated passphrase]' \
|
|
'(-p --password)--gen-passphrase[Protect the file with a generated passphrase]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':URL -- The share URL:_files' \
|
|
&& ret=0
|
|
;;
|
|
(u)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Protect the file with a password]' \
|
|
'--password=[Protect the file with a password]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-e+[The file expiry time]' \
|
|
'--expiry-time=[The file expiry time]' \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-n+[Rename the file being uploaded]' \
|
|
'--name=[Rename the file being uploaded]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'(-p --password)-P[Protect the file with a generated passphrase]' \
|
|
'(-p --password)--gen-passphrase[Protect the file with a generated passphrase]' \
|
|
'-o[Open the share link in your browser]' \
|
|
'--open[Open the share link in your browser]' \
|
|
'-D[Delete local file after upload]' \
|
|
'--delete[Delete local file after upload]' \
|
|
'-a[Archive the upload in a single file]' \
|
|
'--archive[Archive the upload in a single file]' \
|
|
'(-C --copy-cmd)-c[Copy the share link to your clipboard]' \
|
|
'(-C --copy-cmd)--copy[Copy the share link to your clipboard]' \
|
|
'(-c --copy)-C[Copy the ffsend download command to your clipboard]' \
|
|
'(-c --copy)--copy-cmd[Copy the ffsend download command to your clipboard]' \
|
|
'-S[Shorten share URLs with a public service]' \
|
|
'--shorten[Shorten share URLs with a public service]' \
|
|
'-Q[Print a QR code for the share URL]' \
|
|
'--qrcode[Print a QR code for the share URL]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':FILE -- The file(s) to upload:_files' \
|
|
&& ret=0
|
|
;;
|
|
(up)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Protect the file with a password]' \
|
|
'--password=[Protect the file with a password]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-e+[The file expiry time]' \
|
|
'--expiry-time=[The file expiry time]' \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-n+[Rename the file being uploaded]' \
|
|
'--name=[Rename the file being uploaded]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'(-p --password)-P[Protect the file with a generated passphrase]' \
|
|
'(-p --password)--gen-passphrase[Protect the file with a generated passphrase]' \
|
|
'-o[Open the share link in your browser]' \
|
|
'--open[Open the share link in your browser]' \
|
|
'-D[Delete local file after upload]' \
|
|
'--delete[Delete local file after upload]' \
|
|
'-a[Archive the upload in a single file]' \
|
|
'--archive[Archive the upload in a single file]' \
|
|
'(-C --copy-cmd)-c[Copy the share link to your clipboard]' \
|
|
'(-C --copy-cmd)--copy[Copy the share link to your clipboard]' \
|
|
'(-c --copy)-C[Copy the ffsend download command to your clipboard]' \
|
|
'(-c --copy)--copy-cmd[Copy the ffsend download command to your clipboard]' \
|
|
'-S[Shorten share URLs with a public service]' \
|
|
'--shorten[Shorten share URLs with a public service]' \
|
|
'-Q[Print a QR code for the share URL]' \
|
|
'--qrcode[Print a QR code for the share URL]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':FILE -- The file(s) to upload:_files' \
|
|
&& ret=0
|
|
;;
|
|
(upload)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-p+[Protect the file with a password]' \
|
|
'--password=[Protect the file with a password]' \
|
|
'-d+[The file download limit]' \
|
|
'--download-limit=[The file download limit]' \
|
|
'-e+[The file expiry time]' \
|
|
'--expiry-time=[The file expiry time]' \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-n+[Rename the file being uploaded]' \
|
|
'--name=[Rename the file being uploaded]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'(-p --password)-P[Protect the file with a generated passphrase]' \
|
|
'(-p --password)--gen-passphrase[Protect the file with a generated passphrase]' \
|
|
'-o[Open the share link in your browser]' \
|
|
'--open[Open the share link in your browser]' \
|
|
'-D[Delete local file after upload]' \
|
|
'--delete[Delete local file after upload]' \
|
|
'-a[Archive the upload in a single file]' \
|
|
'--archive[Archive the upload in a single file]' \
|
|
'(-C --copy-cmd)-c[Copy the share link to your clipboard]' \
|
|
'(-C --copy-cmd)--copy[Copy the share link to your clipboard]' \
|
|
'(-c --copy)-C[Copy the ffsend download command to your clipboard]' \
|
|
'(-c --copy)--copy-cmd[Copy the ffsend download command to your clipboard]' \
|
|
'-S[Shorten share URLs with a public service]' \
|
|
'--shorten[Shorten share URLs with a public service]' \
|
|
'-Q[Print a QR code for the share URL]' \
|
|
'--qrcode[Print a QR code for the share URL]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
':FILE -- The file(s) to upload:_files' \
|
|
&& ret=0
|
|
;;
|
|
(ver)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(v)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(version)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-h+[The remote host to upload to]' \
|
|
'--host=[The remote host to upload to]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(h)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-R+[Remove history entry]' \
|
|
'--rm=[Remove history entry]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-C[Clear all history]' \
|
|
'--clear[Clear all history]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(ls)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-R+[Remove history entry]' \
|
|
'--rm=[Remove history entry]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-C[Clear all history]' \
|
|
'--clear[Clear all history]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(history)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-R+[Remove history entry]' \
|
|
'--rm=[Remove history entry]' \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-C[Clear all history]' \
|
|
'--clear[Clear all history]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
(help)
|
|
_arguments "${_arguments_options[@]}" \
|
|
'-t+[Request timeout (0 to disable)]' \
|
|
'--timeout=[Request timeout (0 to disable)]' \
|
|
'-T+[Transfer timeout (0 to disable)]' \
|
|
'--transfer-timeout=[Transfer timeout (0 to disable)]' \
|
|
'-A+[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--api=[Server API version to use, '\''-'\'' to lookup]' \
|
|
'--basic-auth=[Protected proxy HTTP basic authentication credentials (not FxA)]' \
|
|
'-H+[Use the specified history file]' \
|
|
'--history=[Use the specified history file]' \
|
|
'-h[Prints help information]' \
|
|
'--help[Prints help information]' \
|
|
'-V[Prints version information]' \
|
|
'--version[Prints version information]' \
|
|
'-f[Force the action, ignore warnings]' \
|
|
'--force[Force the action, ignore warnings]' \
|
|
'-I[Not interactive, do not prompt]' \
|
|
'--no-interact[Not interactive, do not prompt]' \
|
|
'-y[Assume yes for prompts]' \
|
|
'--yes[Assume yes for prompts]' \
|
|
'-q[Produce output suitable for logging and automation]' \
|
|
'--quiet[Produce output suitable for logging and automation]' \
|
|
'*-v[Enable verbose information and logging]' \
|
|
'*--verbose[Enable verbose information and logging]' \
|
|
'-i[Don'\''t update local history for actions]' \
|
|
'--incognito[Don'\''t update local history for actions]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
}
|
|
|
|
(( $+functions[_ffsend_commands] )) ||
|
|
_ffsend_commands() {
|
|
local commands; commands=(
|
|
"debug:View debug information" \
|
|
"dbg:View debug information" \
|
|
"delete:Delete a shared file" \
|
|
"del:Delete a shared file" \
|
|
"rm:Delete a shared file" \
|
|
"download:Download files" \
|
|
"d:Download files" \
|
|
"down:Download files" \
|
|
"exists:Check whether a remote file exists" \
|
|
"e:Check whether a remote file exists" \
|
|
"generate:Generate assets" \
|
|
"gen:Generate assets" \
|
|
"info:Fetch info about a shared file" \
|
|
"i:Fetch info about a shared file" \
|
|
"parameters:Change parameters of a shared file" \
|
|
"params:Change parameters of a shared file" \
|
|
"password:Change the password of a shared file" \
|
|
"pass:Change the password of a shared file" \
|
|
"p:Change the password of a shared file" \
|
|
"upload:Upload files" \
|
|
"u:Upload files" \
|
|
"up:Upload files" \
|
|
"version:Determine the Send server version" \
|
|
"v:Determine the Send server version" \
|
|
"history:View file history" \
|
|
"h:View file history" \
|
|
"help:Prints this message or the help of the given subcommand(s)" \
|
|
)
|
|
_describe -t commands 'ffsend commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__complete_commands] )) ||
|
|
_ffsend__complete_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend complete commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__generate__complete_commands] )) ||
|
|
_ffsend__generate__complete_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend generate complete commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__completion_commands] )) ||
|
|
_ffsend__completion_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend completion commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__generate__completion_commands] )) ||
|
|
_ffsend__generate__completion_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend generate completion commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__generate__completions_commands] )) ||
|
|
_ffsend__generate__completions_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend generate completions commands' commands "$@"
|
|
}
|
|
(( $+functions[_d_commands] )) ||
|
|
_d_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'd commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__d_commands] )) ||
|
|
_ffsend__d_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend d commands' commands "$@"
|
|
}
|
|
(( $+functions[_dbg_commands] )) ||
|
|
_dbg_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'dbg commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__dbg_commands] )) ||
|
|
_ffsend__dbg_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend dbg commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__debug_commands] )) ||
|
|
_ffsend__debug_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend debug commands' commands "$@"
|
|
}
|
|
(( $+functions[_del_commands] )) ||
|
|
_del_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'del commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__del_commands] )) ||
|
|
_ffsend__del_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend del commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__delete_commands] )) ||
|
|
_ffsend__delete_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend delete commands' commands "$@"
|
|
}
|
|
(( $+functions[_down_commands] )) ||
|
|
_down_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'down commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__down_commands] )) ||
|
|
_ffsend__down_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend down commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__download_commands] )) ||
|
|
_ffsend__download_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend download commands' commands "$@"
|
|
}
|
|
(( $+functions[_e_commands] )) ||
|
|
_e_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'e commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__e_commands] )) ||
|
|
_ffsend__e_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend e commands' commands "$@"
|
|
}
|
|
(( $+functions[_exist_commands] )) ||
|
|
_exist_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'exist commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__exist_commands] )) ||
|
|
_ffsend__exist_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend exist commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__exists_commands] )) ||
|
|
_ffsend__exists_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend exists commands' commands "$@"
|
|
}
|
|
(( $+functions[_gen_commands] )) ||
|
|
_gen_commands() {
|
|
local commands; commands=(
|
|
"completions:Shell completions" \
|
|
"help:Prints this message or the help of the given subcommand(s)" \
|
|
)
|
|
_describe -t commands 'gen commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__generate_commands] )) ||
|
|
_ffsend__generate_commands() {
|
|
local commands; commands=(
|
|
"completions:Shell completions" \
|
|
"help:Prints this message or the help of the given subcommand(s)" \
|
|
)
|
|
_describe -t commands 'ffsend generate commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__h_commands] )) ||
|
|
_ffsend__h_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend h commands' commands "$@"
|
|
}
|
|
(( $+functions[_h_commands] )) ||
|
|
_h_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'h commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__generate__help_commands] )) ||
|
|
_ffsend__generate__help_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend generate help commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__help_commands] )) ||
|
|
_ffsend__help_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend help commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__history_commands] )) ||
|
|
_ffsend__history_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend history commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__i_commands] )) ||
|
|
_ffsend__i_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend i commands' commands "$@"
|
|
}
|
|
(( $+functions[_i_commands] )) ||
|
|
_i_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'i commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__info_commands] )) ||
|
|
_ffsend__info_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend info commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__information_commands] )) ||
|
|
_ffsend__information_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend information commands' commands "$@"
|
|
}
|
|
(( $+functions[_information_commands] )) ||
|
|
_information_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'information commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__ls_commands] )) ||
|
|
_ffsend__ls_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend ls commands' commands "$@"
|
|
}
|
|
(( $+functions[_ls_commands] )) ||
|
|
_ls_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ls commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__p_commands] )) ||
|
|
_ffsend__p_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend p commands' commands "$@"
|
|
}
|
|
(( $+functions[_p_commands] )) ||
|
|
_p_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'p commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__param_commands] )) ||
|
|
_ffsend__param_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend param commands' commands "$@"
|
|
}
|
|
(( $+functions[_param_commands] )) ||
|
|
_param_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'param commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__parameter_commands] )) ||
|
|
_ffsend__parameter_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend parameter commands' commands "$@"
|
|
}
|
|
(( $+functions[_parameter_commands] )) ||
|
|
_parameter_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'parameter commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__parameters_commands] )) ||
|
|
_ffsend__parameters_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend parameters commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__params_commands] )) ||
|
|
_ffsend__params_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend params commands' commands "$@"
|
|
}
|
|
(( $+functions[_params_commands] )) ||
|
|
_params_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'params commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__pass_commands] )) ||
|
|
_ffsend__pass_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend pass commands' commands "$@"
|
|
}
|
|
(( $+functions[_pass_commands] )) ||
|
|
_pass_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'pass commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__password_commands] )) ||
|
|
_ffsend__password_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend password commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__rm_commands] )) ||
|
|
_ffsend__rm_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend rm commands' commands "$@"
|
|
}
|
|
(( $+functions[_rm_commands] )) ||
|
|
_rm_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'rm commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__u_commands] )) ||
|
|
_ffsend__u_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend u commands' commands "$@"
|
|
}
|
|
(( $+functions[_u_commands] )) ||
|
|
_u_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'u commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__up_commands] )) ||
|
|
_ffsend__up_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend up commands' commands "$@"
|
|
}
|
|
(( $+functions[_up_commands] )) ||
|
|
_up_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'up commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__upload_commands] )) ||
|
|
_ffsend__upload_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend upload commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__v_commands] )) ||
|
|
_ffsend__v_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend v commands' commands "$@"
|
|
}
|
|
(( $+functions[_v_commands] )) ||
|
|
_v_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'v commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__ver_commands] )) ||
|
|
_ffsend__ver_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend ver commands' commands "$@"
|
|
}
|
|
(( $+functions[_ver_commands] )) ||
|
|
_ver_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ver commands' commands "$@"
|
|
}
|
|
(( $+functions[_ffsend__version_commands] )) ||
|
|
_ffsend__version_commands() {
|
|
local commands; commands=(
|
|
|
|
)
|
|
_describe -t commands 'ffsend version commands' commands "$@"
|
|
}
|
|
|
|
_ffsend "$@" |