generate: allow passing - for stdout output

Since generating completions to stdout for multiple shells does not make
sense, enforce `-` is supplied only once.
This commit is contained in:
Roman Inflianskas
2024-09-13 15:33:49 +03:00
parent c1532179d4
commit 3d976562fa
3 changed files with 93 additions and 28 deletions

View File

@@ -0,0 +1,6 @@
Enhancement: Allow generating shell completions to stdout
Restic `generate` now supports passing `-` passed as file name to `--[shell]-completion` option.
https://github.com/restic/restic/issues/2511
https://github.com/restic/restic/pull/5053