Skip to main content

to_stdout

Function to_stdout 

Source
pub fn to_stdout(repo: &Repo) -> Result<Exported>
Expand description

Writes the repository key to stdout, for piping into a secret store.

A terminal is written to like anything else and reported back, so the caller can name the cost. Refusing it was the rule from 2026-08-06 until 2026-08-11; see the module comment for why it is a warning now, and for the half of the bargain no process can enforce either way.

ยงErrors

Error::NoKey when the repository has no key, Error::Io when the write fails.