diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Debian/Command/_dscverify | 30 |
2 files changed, 35 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 096ca9657..56934bc46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-03-10 Romain Porte <debian@microjoe.org> + + * 45524: Completion/Debian/Command/_dscverify: Add completion + for dscverify(1) from Debian's devscripts. + 2020-03-09 Daniel Shahaf <danielsh@apache.org> * 45518 + unposted tweak (change single quotes to double quotes): 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 "$@" |