sequoia-sq/src
David Runge 6ac9c2761a
Fix use of --output when importing to cert-store is the default
- As clap can not use `Default` as advertised for certain types [1], use
  `Option<FileOrStdout>` instead in cases where the default is to import
  to cert-store. Semantically, this works as before: By default import
  to cert-store, when providing "-" output to stdout and when providing
  a file name output to the file.
- Since `FileOrCertStore` can not wrap any other type under the given
  circumstances, turn it into an empty struct that only implements
  `ClapData` to provide static strings for the clap setup.
- Adapt the help message for `FileOrCertStore` to mention, that
  providing "-" leads to output on stdout.

Fixes #133

[1] https://github.com/clap-rs/clap/issues/4558
2023-06-20 10:45:58 +02:00
..
commands Fix use of --output when importing to cert-store is the default 2023-06-20 10:45:58 +02:00
sq_cli Fix use of --output when importing to cert-store is the default 2023-06-20 10:45:58 +02:00
log.rs Add sq wot 2023-03-30 16:03:48 +02:00
macros.rs Add support for a persistant certificate store 2023-03-16 13:46:50 +01:00
man.rs Update to clap 4 2023-03-17 09:55:19 +01:00
output.rs Add sq wot 2023-03-30 16:03:48 +02:00
sq.rs Replace CLI I/O argument duplication with common facilities 2023-06-17 15:39:14 +02:00