Add completions for you-get
- [X] Completions are not accepted when already available in zsh. - [X] Completions are not accepted when already available in their original project. - [X] Please do not just copy/paste someone else's completion, ask before. - [X] Partially implemented completions are not accepted. - [X] Please add a header containing authors, status and origin of the script and license header if you do not wish to use the Zsh license (example here). - [X] Any reasonable open source licence is acceptable but note that we recommend the use of the Zsh license and that you should use it if you hope for the function to migrate to zsh itself. - [X] Please try to follow the Zsh completion style guide. - [X] Please send one separate pull request per file. - [X] Send a pull request or ask for committer access. From https://github.com/soimort/you-get/blob/develop/contrib/completion/_you-get
This commit is contained in:
parent
cf565254e2
commit
76b9dbf55f
|
@ -0,0 +1,59 @@
|
||||||
|
#compdef you-get
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# MIT license (https://raw.githubusercontent.com/soimort/you-get/master/LICENSE.txt)
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
# this software and associated documentation files (the "Software"), to deal in
|
||||||
|
# the Software without restriction, including without limitation the rights to
|
||||||
|
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
# of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
# so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Description
|
||||||
|
# -----------
|
||||||
|
#
|
||||||
|
# Zsh completion definition for soimort/you-get(https://github.com/soimort/you-get)
|
||||||
|
#
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Authors
|
||||||
|
# -------
|
||||||
|
#
|
||||||
|
# * soimort <soi@mort.ninja>
|
||||||
|
#
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
setopt localoptions noshwordsplit noksharrays
|
||||||
|
local -a args
|
||||||
|
|
||||||
|
args=(
|
||||||
|
'(- : *)'{-V,--version}'[print version and exit]'
|
||||||
|
'(- : *)'{-h,--help}'[print help and exit]'
|
||||||
|
'(-i --info)'{-i,--info}'[print extracted information]'
|
||||||
|
'(-u --url)'{-u,--url}'[print extracted information with URLs]'
|
||||||
|
'(--json)--json[print extracted URLs in JSON format]'
|
||||||
|
'(-n --no-merge)'{-n,--no-merge}'[do not merge video parts]'
|
||||||
|
'(--no-caption)--no-caption[do not download captions]'
|
||||||
|
'(-f --force)'{-f,--force}'[force overwrite existing files]'
|
||||||
|
'(-F --format)'{-F,--format}'[set video format to the specified stream id]:stream id'
|
||||||
|
'(-O --output-filename)'{-O,--output-filename}'[set output filename]:filename:_files'
|
||||||
|
'(-o --output-dir)'{-o,--output-dir}'[set output directory]:directory:_files -/'
|
||||||
|
'(-p --player)'{-p,--player}'[stream extracted URL to the specified player]:player and options'
|
||||||
|
'(-c --cookies)'{-c,--cookies}'[load cookies.txt or cookies.sqlite]:cookies file:_files'
|
||||||
|
'(-x --http-proxy)'{-x,--http-proxy}'[use the specified HTTP proxy for downloading]:host\:port:'
|
||||||
|
'(-y --extractor-proxy)'{-y,--extractor-proxy}'[use the specified HTTP proxy for extraction only]:host\:port'
|
||||||
|
'(--no-proxy)--no-proxy[do not use a proxy]'
|
||||||
|
'(-t --timeout)'{-t,--timeout}'[set socket timeout]:seconds'
|
||||||
|
'(-d --debug)'{-d,--debug}'[show traceback and other debug info]'
|
||||||
|
'*: :_guard "^-*" url'
|
||||||
|
)
|
||||||
|
_arguments -S -s $args
|
Loading…
Reference in New Issue