From 62f1bce228b8d4abf18bc6e9ef22d0d2cdaff075 Mon Sep 17 00:00:00 2001 From: timvisee Date: Sat, 7 Dec 2019 15:32:32 +0100 Subject: [PATCH] Update shell completion scripts --- contrib/completions/_ffsend | 6 ++++++ contrib/completions/_ffsend.ps1 | 2 ++ contrib/completions/ffsend.bash | 30 +++++++++++++++++++++++++++--- contrib/completions/ffsend.elv | 2 ++ contrib/completions/ffsend.fish | 1 + 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/contrib/completions/_ffsend b/contrib/completions/_ffsend index 55efef5..1fea7c4 100644 --- a/contrib/completions/_ffsend +++ b/contrib/completions/_ffsend @@ -1085,6 +1085,8 @@ _arguments "${_arguments_options[@]}" \ '--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]' \ @@ -1136,6 +1138,8 @@ _arguments "${_arguments_options[@]}" \ '--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]' \ @@ -1187,6 +1191,8 @@ _arguments "${_arguments_options[@]}" \ '--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]' \ diff --git a/contrib/completions/_ffsend.ps1 b/contrib/completions/_ffsend.ps1 index d920dfd..3c8e970 100644 --- a/contrib/completions/_ffsend.ps1 +++ b/contrib/completions/_ffsend.ps1 @@ -371,6 +371,8 @@ Register-ArgumentCompleter -Native -CommandName 'ffsend' -ScriptBlock { [CompletionResult]::new('--password', 'password', [CompletionResultType]::ParameterName, 'Protect the file with a password') [CompletionResult]::new('-d', 'd', [CompletionResultType]::ParameterName, 'The file download limit') [CompletionResult]::new('--download-limit', 'download-limit', [CompletionResultType]::ParameterName, 'The file download limit') + [CompletionResult]::new('-e', 'e', [CompletionResultType]::ParameterName, 'The file expiry time') + [CompletionResult]::new('--expiry-time', 'expiry-time', [CompletionResultType]::ParameterName, 'The file expiry time') [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'The remote host to upload to') [CompletionResult]::new('--host', 'host', [CompletionResultType]::ParameterName, 'The remote host to upload to') [CompletionResult]::new('-n', 'n', [CompletionResultType]::ParameterName, 'Rename the file being uploaded') diff --git a/contrib/completions/ffsend.bash b/contrib/completions/ffsend.bash index 050a6d6..fc467dc 100644 --- a/contrib/completions/ffsend.bash +++ b/contrib/completions/ffsend.bash @@ -2057,7 +2057,7 @@ _ffsend() { return 0 ;; ffsend__u) - opts=" -P -o -a -c -C -S -Q -V -f -I -y -q -v -i -p -d -h -n -t -T -A -H --gen-passphrase --open --archive --copy --copy-cmd --shorten --qrcode --help --version --force --no-interact --yes --quiet --verbose --incognito --password --download-limit --host --name --timeout --transfer-timeout --api --basic-auth --history ... " + opts=" -P -o -a -c -C -S -Q -V -f -I -y -q -v -i -p -d -e -h -n -t -T -A -H --gen-passphrase --open --archive --copy --copy-cmd --shorten --qrcode --help --version --force --no-interact --yes --quiet --verbose --incognito --password --download-limit --expiry-time --host --name --timeout --transfer-timeout --api --basic-auth --history ... " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -2080,6 +2080,14 @@ _ffsend() { COMPREPLY=($(compgen -f "${cur}")) return 0 ;; + --expiry-time) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -e) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; --host) COMPREPLY=($(compgen -f "${cur}")) return 0 @@ -2140,7 +2148,7 @@ _ffsend() { return 0 ;; ffsend__up) - opts=" -P -o -a -c -C -S -Q -V -f -I -y -q -v -i -p -d -h -n -t -T -A -H --gen-passphrase --open --archive --copy --copy-cmd --shorten --qrcode --help --version --force --no-interact --yes --quiet --verbose --incognito --password --download-limit --host --name --timeout --transfer-timeout --api --basic-auth --history ... " + opts=" -P -o -a -c -C -S -Q -V -f -I -y -q -v -i -p -d -e -h -n -t -T -A -H --gen-passphrase --open --archive --copy --copy-cmd --shorten --qrcode --help --version --force --no-interact --yes --quiet --verbose --incognito --password --download-limit --expiry-time --host --name --timeout --transfer-timeout --api --basic-auth --history ... " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -2163,6 +2171,14 @@ _ffsend() { COMPREPLY=($(compgen -f "${cur}")) return 0 ;; + --expiry-time) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -e) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; --host) COMPREPLY=($(compgen -f "${cur}")) return 0 @@ -2223,7 +2239,7 @@ _ffsend() { return 0 ;; ffsend__upload) - opts=" -P -o -a -c -C -S -Q -V -f -I -y -q -v -i -p -d -h -n -t -T -A -H --gen-passphrase --open --archive --copy --copy-cmd --shorten --qrcode --help --version --force --no-interact --yes --quiet --verbose --incognito --password --download-limit --host --name --timeout --transfer-timeout --api --basic-auth --history ... " + opts=" -P -o -a -c -C -S -Q -V -f -I -y -q -v -i -p -d -e -h -n -t -T -A -H --gen-passphrase --open --archive --copy --copy-cmd --shorten --qrcode --help --version --force --no-interact --yes --quiet --verbose --incognito --password --download-limit --expiry-time --host --name --timeout --transfer-timeout --api --basic-auth --history ... " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -2246,6 +2262,14 @@ _ffsend() { COMPREPLY=($(compgen -f "${cur}")) return 0 ;; + --expiry-time) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -e) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; --host) COMPREPLY=($(compgen -f "${cur}")) return 0 diff --git a/contrib/completions/ffsend.elv b/contrib/completions/ffsend.elv index ca166b4..3b58d46 100644 --- a/contrib/completions/ffsend.elv +++ b/contrib/completions/ffsend.elv @@ -355,6 +355,8 @@ edit:completion:arg-completer[ffsend] = [@words]{ cand --password 'Protect the file with a password' cand -d 'The file download limit' cand --download-limit 'The file download limit' + cand -e 'The file expiry time' + cand --expiry-time 'The file expiry time' cand -h 'The remote host to upload to' cand --host 'The remote host to upload to' cand -n 'Rename the file being uploaded' diff --git a/contrib/completions/ffsend.fish b/contrib/completions/ffsend.fish index 6a28826..e7436a8 100644 --- a/contrib/completions/ffsend.fish +++ b/contrib/completions/ffsend.fish @@ -170,6 +170,7 @@ complete -c ffsend -n "__fish_seen_subcommand_from password" -s v -l verbose -d complete -c ffsend -n "__fish_seen_subcommand_from password" -s i -l incognito -d 'Don\'t update local history for actions' complete -c ffsend -n "__fish_seen_subcommand_from upload" -s p -l password -d 'Protect the file with a password' complete -c ffsend -n "__fish_seen_subcommand_from upload" -s d -l download-limit -d 'The file download limit' +complete -c ffsend -n "__fish_seen_subcommand_from upload" -s e -l expiry-time -d 'The file expiry time' complete -c ffsend -n "__fish_seen_subcommand_from upload" -s h -l host -d 'The remote host to upload to' complete -c ffsend -n "__fish_seen_subcommand_from upload" -s n -l name -d 'Rename the file being uploaded' complete -c ffsend -n "__fish_seen_subcommand_from upload" -s t -l timeout -d 'Request timeout (0 to disable)'