about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorRomain Porte <debian@microjoe.org>2020-03-09 15:45:52 +0100
committerDaniel Shahaf <danielsh@apache.org>2020-03-10 15:31:24 +0000
commit0d7f888945bd487d6458807684883b22dc3b31b8 (patch)
treebd34143236fbc9d268129001f91df943e4351e0a /Completion/Debian
parent1602016d530d76a0c924b297e05ef3dd9b6c4105 (diff)
downloadzsh-0d7f888945bd487d6458807684883b22dc3b31b8.tar.gz
zsh-0d7f888945bd487d6458807684883b22dc3b31b8.tar.xz
zsh-0d7f888945bd487d6458807684883b22dc3b31b8.zip
45524: Add completion for dscverify(1) from Debian's devscripts.
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Command/_dscverify30
1 files changed, 30 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_dscverify b/Completion/Debian/Command/_dscverify
new file mode 100644
index 000000000..22ffc03b5
--- /dev/null
+++ b/Completion/Debian/Command/_dscverify
@@ -0,0 +1,30 @@
+#compdef dscverify
+
+# $ dscverify --version
+# This is dscverify, from the Debian devscripts package, version 2.20.2
+# ...
+
+_dscverify() {
+  local all_opts=(
+    '--help[show the help message and exit]'
+    '--version[show the version + copyright and exit]'
+    '--no-default-keyrings[do not check against the default keyrings]'
+    '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.{kbx,gpg}(-.)"'
+    '(--nosigcheck --no-sig-check -u)'{--nosigcheck,--no-sig-check,-u}'[do not verify the GPG signature]'
+    '--verbose[do not suppress GPG output]'
+    '*:dsc file:_files -g "*.{changes,dsc,buildinfo}(-.)"'
+  )
+
+  local first_only=(
+    '(--no-conf --noconf)'{--no-conf,--noconf}'[do not read the devscripts config file]'
+  )
+
+  if (( CURRENT == 2 )); then
+    all_opts+=($first_only)
+  fi
+
+  _arguments \
+    "$all_opts[@]"
+}
+
+_dscverify "$@"