From 0c73e982fa596da07f23b377621ab894a9e64884 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 10 Nov 2019 22:14:10 -0500 Subject: New upstream version 1.11.1 --- data/completion/gallery-dl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/completion/gallery-dl (limited to 'data/completion') diff --git a/data/completion/gallery-dl b/data/completion/gallery-dl new file mode 100644 index 0000000..415bf5c --- /dev/null +++ b/data/completion/gallery-dl @@ -0,0 +1,17 @@ +_gallery_dl() +{ + local cur prev + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + + if [[ "${prev}" =~ ^(-i|--input-file|--cookies|--write-log|--write-unsupported|-c|--config|--config-yaml|--download-archive)$ ]]; then + COMPREPLY=( $(compgen -f -- "${cur}") ) + elif [[ "${prev}" =~ ^(-d|--dest)$ ]]; then + COMPREPLY=( $(compgen -d -- "${cur}") ) + else + COMPREPLY=( $(compgen -W "--help --version --dest --input-file --cookies --proxy --clear-cache --quiet --verbose --get-urls --dump-json --simulate --list-keywords --list-modules --list-extractors --write-log --write-unsupported --limit-rate --retries --abort --http-timeout --sleep --no-part --no-mtime --no-download --no-check-certificate --abort-on-skip --config --config-yaml --option --ignore-config --username --password --netrc --download-archive --range --chapter-range --filter --chapter-filter --zip --exec --ugoira-conv --ugoira-conv-lossless --write-metadata --write-tags --mtime-from-date" -- "${cur}") ) + fi +} + +complete -F _gallery_dl gallery-dl -- cgit v1.2.3