Module cli_common

Module cli_common 

Source
Available on crate feature cli-common only.
Expand description

Common helpers for CLI binaries.

Modules§

file_io
File I/O helpers for CLI binaries.

Structs§

StdinGuard
A guard that helps to ensure that standard input is only used once.
UiCallbacks
Implementation of age callbacks that makes requests to the user via the UI.

Enums§

Passphrase
A passphrase.
ReadError
Errors that can occur while reading recipients or identities.

Functions§

read_identities
Reads identities from the provided files.
read_or_generate_passphrase
Reads a passphrase from stdin, or generates a secure one if none is provided.
read_recipients
Reads recipients from the provided arguments.
read_secret
Requests a secret from the user.