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 committed 2024-09-16 10:54:00 +03:00
1 parent c1532179d4
commit 3d976562fa
3 files changed
+93 -28

No files matched your search

+6
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