From f5d3fd8a8207be37c49c1bc66e03c1c67ccb5b71 Mon Sep 17 00:00:00 2001 From: LunarEclipse Date: Tue, 30 Dec 2025 21:54:14 +0100 Subject: [PATCH] Full completions for openbsd signify Part of #12243 --- localization/po/de.po | 9 ----- localization/po/en.po | 9 ----- localization/po/fr.po | 9 ----- localization/po/pl.po | 9 ----- localization/po/pt_BR.po | 9 ----- localization/po/sv.po | 9 ----- localization/po/zh_CN.po | 9 ----- localization/po/zh_TW.po | 9 ----- share/completions/signify.fish | 69 ++++++++++++++++++++++++++++++++-- 9 files changed, 65 insertions(+), 76 deletions(-) diff --git a/localization/po/de.po b/localization/po/de.po index 58b747b38..d3f4f7674 100644 --- a/localization/po/de.po +++ b/localization/po/de.po @@ -59866,9 +59866,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70609,12 +70606,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/en.po b/localization/po/en.po index 58136724e..fae239d38 100644 --- a/localization/po/en.po +++ b/localization/po/en.po @@ -59864,9 +59864,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70607,12 +70604,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/fr.po b/localization/po/fr.po index a88e819d7..730e8e497 100644 --- a/localization/po/fr.po +++ b/localization/po/fr.po @@ -59995,9 +59995,6 @@ msgstr "Signe des échantillons" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70738,12 +70735,6 @@ msgstr "Ne pas vérifier un encodage correct" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/pl.po b/localization/po/pl.po index a8a2dd92d..b3b794c3b 100644 --- a/localization/po/pl.po +++ b/localization/po/pl.po @@ -59860,9 +59860,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70603,12 +70600,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/pt_BR.po b/localization/po/pt_BR.po index ee1bb255f..cf86f6726 100644 --- a/localization/po/pt_BR.po +++ b/localization/po/pt_BR.po @@ -59865,9 +59865,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70608,12 +70605,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/sv.po b/localization/po/sv.po index 748c3a49c..1f0cf9765 100644 --- a/localization/po/sv.po +++ b/localization/po/sv.po @@ -59861,9 +59861,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70604,12 +70601,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/zh_CN.po b/localization/po/zh_CN.po index 4eadf70e2..e51fc9c59 100644 --- a/localization/po/zh_CN.po +++ b/localization/po/zh_CN.po @@ -59893,9 +59893,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70636,12 +70633,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/localization/po/zh_TW.po b/localization/po/zh_TW.po index 7fa53841a..12298744f 100644 --- a/localization/po/zh_TW.po +++ b/localization/po/zh_TW.po @@ -59870,9 +59870,6 @@ msgstr "" msgid "Sign project artifact, the POM, and attached artifacts with GnuPG for deployment" msgstr "" -msgid "Sign specified message" -msgstr "" - msgid "Sign the extension so it can be installed in Firefox" msgstr "" @@ -70613,12 +70610,6 @@ msgstr "" msgid "Verify a signed NuGet package" msgstr "" -msgid "Verify a signed checksum list" -msgstr "" - -msgid "Verify a signed message and sig" -msgstr "" - msgid "Verify and commit firmware to a specific slot" msgstr "" diff --git a/share/completions/signify.fish b/share/completions/signify.fish index 996e8f42e..0967c674f 100644 --- a/share/completions/signify.fish +++ b/share/completions/signify.fish @@ -1,4 +1,65 @@ -complete -c signify -n __fish_seen_subcommand_from -s C -d 'Verify a signed checksum list' -complete -c signify -n __fish_seen_subcommand_from -s G -d 'Generate a new key pair' -complete -c signify -n __fish_seen_subcommand_from -s S -d 'Sign specified message' -complete -c signify -n __fish_seen_subcommand_from -s V -d 'Verify a signed message and sig' +# Tab completion for openbsd-signify + +set -l subcommands -C -G -S -V +set -l subcommands_desc (echo -s \ + -C\t"Verify a signed checksum list."\n \ + -G\t"Generate a new key pair."\n \ + -S\t"Sign the specified message file."\n \ + -V\t"Verify the message and signature match."\n \ + | string escape) + +complete -c signify --no-files + +complete -c signify \ + --condition "not __fish_seen_subcommand_from $subcommands" \ + --arguments "$subcommands_desc" + +complete -c signify --force-files \ + --condition '__fish_seen_subcommand_from -C' + +complete -c signify --short-option c --no-files --require-parameter \ + --description 'Specify the comment to be added during key generation' \ + --condition '__fish_seen_subcommand_from -G' + +complete -c signify --short-option e --no-files \ + --description 'Use embedded signatures' \ + --condition '__fish_seen_subcommand_from -S -V' + +complete -c signify --short-option m --force-files --require-parameter \ + --description 'Message file to sign or verify' \ + --condition '__fish_seen_subcommand_from -S -V' + +# The -n option has two context-dependent meanings +complete -c signify --short-option n --no-files \ + --description 'When generating a key pair, do not ask for a passphrase' \ + --condition '__fish_seen_argument -s G' +complete -c signify --short-option n --no-files \ + --description 'When signing with -z, store a zero timestamp in the gzip header' \ + --condition '__fish_seen_subcommand_from -S && __fish_seen_argument -s z' + +complete -c signify --short-option p --force-files --require-parameter \ + --description 'Public key produced by -G, and used by -V to check a signature' \ + --condition '__fish_seen_subcommand_from -C -G -V' + +complete -c signify --short-option q --no-files \ + --description 'Quiet mode. Suppress informational output' \ + --condition '__fish_seen_subcommand_from -C -V' + +complete -c signify --short-option s --force-files --require-parameter \ + --description 'Secret (private) key produced by -G, and used by -S to sign a message' \ + --condition '__fish_seen_subcommand_from -G -S' + +complete -c signify --short-option t --no-files --require-parameter \ + --arguments '(ls /etc/signify 2>/dev/null | string match -e \'*-*.pub\' | string replace -r \'\\.pub$\' "" | string replace -r \'.*-\' "")' \ + --condition '__fish_seen_subcommand_from -C -V' +complete -c signify --short-option t --no-files --require-parameter \ + --description 'When inferring a key to verify with, only use keys with this keytype suffix' \ + --condition '__fish_seen_subcommand_from -C -V' + +complete -c signify --short-option x --force-files --require-parameter \ + --description 'The signature file to create or verify. The default is message.sig' \ + --condition '__fish_seen_subcommand_from -C -S -V' + +complete -c signify --short-option z --no-files \ + --description 'Sign and verify gzip (1) archives, embed signature in the header' \ + --condition '__fish_seen_subcommand_from -S -V'