Go to file
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
.ci ci: Fix all-commits job. 2023-03-13 15:49:57 +01:00
src Fix use of --output when importing to cert-store is the default 2023-06-20 10:45:58 +02:00
subplot Reincarnation commit. 2023-02-21 12:43:43 +01:00
tests Rename --export option of sq key generate to the generic --output 2023-06-17 15:51:25 +02:00
.gitattributes Add git configuration. 2023-02-23 11:22:01 +01:00
.gitignore Add git configuration. 2023-02-23 11:22:01 +01:00
.gitlab-ci.yml Add cargo-deny integration 2023-05-30 13:19:24 +02:00
build.rs Add instructions on man page creation to README 2023-06-12 16:14:50 +02:00
Cargo.lock Release 0.30.1. 2023-05-31 10:33:31 +02:00
Cargo.toml Replace CLI I/O argument duplication with common facilities 2023-06-17 15:39:14 +02:00
deny.toml Add cargo-deny integration 2023-05-30 13:19:24 +02:00
Dockerfile Build and push Docker image to Gitlab's registry. 2023-03-13 12:54:00 +01:00
LICENSE.txt Reincarnation commit. 2023-02-21 12:43:43 +01:00
NEWS Release 0.30.1. 2023-05-31 10:33:31 +02:00
README.md Add instructions on man page creation to README 2023-06-12 16:14:50 +02:00
sq-subplot.md Rename --export option of sq key generate to the generic --output 2023-06-17 15:51:25 +02:00
sq.subplot Update to the latest version of subplot 2023-03-17 10:07:17 +01:00

sq, the Sequoia-PGP command line tool

Sequoia-PGP is an implementation of OpenPGP in Rust. It includes a suite of library crates, which are meant to be used from applications. This crate provides the sq command line application. sq is aimed at command line users as a way to use OpenPGP conveniently from the command line.

See the sq user guide for instructions. The program also has built-in help, using the --help option and help subcommand:

$ sq help
...

These are collected as the sq help page, for your convenience.

Building

This crate can be built using the standard cargo toolchain:

cargo build

The above creates the sq executable and its shell completions.

To create the man pages for sq in a directory (here manpages/) use the built executable:

SQ_MAN=manpages cargo run