Recent commits to derivepassphrase.git (1d3e8b434e1d4e5774652731a25e8792f1f460bf) https://git.schokokeks.org/derivepassphrase.git/tree/1d3e8b434e1d4e5774652731a25e8792f1f460bf Recent commits feed provided by GitList. Merge topic branch 'shell-completion' into master * t/shell-completion: Add changelog entry for the new explicit shell completion support Add shell completion support to derivepassphrase https://git.schokokeks.org/derivepassphrase.git/commit/1d3e8b434e1d4e5774652731a25e8792f1f460bf software@the13thletter.info (Marco Ricci) Wed, 01 Jan 2025 00:30:14 +0100 1d3e8b434e1d4e5774652731a25e8792f1f460bf Add changelog entry for the new explicit shell completion support https://git.schokokeks.org/derivepassphrase.git/commit/3918c376b11e8e13bd6ee97684aac86c962ccc06 software@the13thletter.info (Marco Ricci) Wed, 01 Jan 2025 00:28:20 +0100 3918c376b11e8e13bd6ee97684aac86c962ccc06 Add shell completion support to derivepassphrase `click` already includes shell completion out of the box, so what remained to be done was to tell `click` what kind of values the arguments expect: * The `path` argument for `derivepassphrase export vault` will be completed with a filename or the string `VAULT_PATH`. Because this is not (as a whole) a supported standard category of completion items, we must generate the completion items ourselves in this case, including the partial filtering of results. * The `path` argument to the `--import` and `--export` options of `derivepassphrase vault` will be completed with a filename. `click` handles this for us. * The `service` argument to `devirepassphrase vault` will be completed with a service name, which we must manually extract and filter. The shell completion has so far only been tested interactively; in particular, it is currently excluded from coverage testing. https://git.schokokeks.org/derivepassphrase.git/commit/8f9fa0e9819f814b7638a3dd8f705ac6b84d2611 software@the13thletter.info (Marco Ricci) Wed, 01 Jan 2025 00:21:55 +0100 8f9fa0e9819f814b7638a3dd8f705ac6b84d2611 Merge topic branch 'i18n-l10n-infrastructure' into master * t/i18n-l10n-infrastructure: Add a changelog entry for the new i18n/l10n infrastructure Fix coverage Reimplement `--help` and `--version` options in a translatable way Replace strings in `derivepassphrase export vault` with translatable ones Force logging calls in error callback to be uninterpolated Provide a function to reload translations for derivepassphrase Add a writer function for derivepassphrase's .po template Fix some translation typos and inconsistent translation comments Update the CLI to use the translatable strings Add more translatable strings and serialization machinery Extract translatable log messages into separate module Add an actual derivepassphrase-vault(1) manpage, plus better manpage contents Make the mutually exclusive options helper function print the correct parameter name Add small fixes to changelog, docstrings and variable names https://git.schokokeks.org/derivepassphrase.git/commit/2aa16e5903369994e0df761a1061f007e945f596 software@the13thletter.info (Marco Ricci) Wed, 01 Jan 2025 00:17:28 +0100 2aa16e5903369994e0df761a1061f007e945f596 Add a changelog entry for the new i18n/l10n infrastructure https://git.schokokeks.org/derivepassphrase.git/commit/a254e71ee699f479fa70264f7d1a8110cb4777f5 software@the13thletter.info (Marco Ricci) Wed, 01 Jan 2025 00:17:17 +0100 a254e71ee699f479fa70264f7d1a8110cb4777f5 Fix coverage Exclude further machinery from coverage that isn't meant to be tested. https://git.schokokeks.org/derivepassphrase.git/commit/220d71df817f2662308efab15e98f138fd6dde18 software@the13thletter.info (Marco Ricci) Tue, 31 Dec 2024 23:58:59 +0100 220d71df817f2662308efab15e98f138fd6dde18 Reimplement `--help` and `--version` options in a translatable way Reimplement the machinery for displaying help texts and version information, supporting translatable strings. Besides the one-line help texts for the `--help` and `--version` options, the version information text is a translatable string itself, in case the name and version number should be rearranged, or prefixed or suffixed, or whatever. https://git.schokokeks.org/derivepassphrase.git/commit/f6e66845b1b4c889aae2f7833678eed2e49c5ae6 software@the13thletter.info (Marco Ricci) Tue, 31 Dec 2024 22:30:36 +0100 f6e66845b1b4c889aae2f7833678eed2e49c5ae6 Replace strings in `derivepassphrase export vault` with translatable ones Apparently, we overlooked this in 59d73c8320650a6bcb77eed759c694949d350cdb. https://git.schokokeks.org/derivepassphrase.git/commit/b225fb3b9cf104a042d810a2b82cd484cc7d5f33 software@the13thletter.info (Marco Ricci) Tue, 31 Dec 2024 22:18:29 +0100 b225fb3b9cf104a042d810a2b82cd484cc7d5f33 Force logging calls in error callback to be uninterpolated Remove the `args` argument to the error callback and to the underlying `logging` function, forcing logger to skip log message interpolation in any case. https://git.schokokeks.org/derivepassphrase.git/commit/0e31ed481bf84684233c909ae8f559c360386fb1 software@the13thletter.info (Marco Ricci) Tue, 31 Dec 2024 22:08:02 +0100 0e31ed481bf84684233c909ae8f559c360386fb1 Provide a function to reload translations for derivepassphrase https://git.schokokeks.org/derivepassphrase.git/commit/73f1128336d79d6f1ee0d8d783d58d6c6d629cc3 software@the13thletter.info (Marco Ricci) Tue, 31 Dec 2024 18:40:01 +0100 73f1128336d79d6f1ee0d8d783d58d6c6d629cc3