pub fn to_stdout(repo: &Repo) -> Result<[u8; 8]>Expand description
Writes the repository key to stdout, for piping into a secret store.
Refuses a terminal, and only a terminal: everything else is a pipe or a redirect the caller chose deliberately. The refusal is the cheap half of the bargain — see the module comment for the half no process can enforce.
§Errors
Error::Config when stdout is a terminal, Error::NoKey when the
repository has no key, Error::Io when the write fails.