prompt
Module: authority::prompt
Section titled “Module: authority::prompt”Contents
Section titled “Contents”Structs
StdAuthorityPrompt- Production implementation backed by real stdin/stderr.
Traits
AuthorityPromptIo- Y/N prompt abstraction.
firma_run::authority::prompt::AuthorityPromptIo
Section titled “firma_run::authority::prompt::AuthorityPromptIo”Trait
Y/N prompt abstraction.
Methods:
is_tty: Whether stdin is attached to a terminal capable of answering.confirm: Printpromptto stderr, read one line from stdin, returntrue
firma_run::authority::prompt::StdAuthorityPrompt
Section titled “firma_run::authority::prompt::StdAuthorityPrompt”Struct
Production implementation backed by real stdin/stderr.
Unit Struct
Trait Implementations:
- AuthorityPromptIo
fn is_tty(self: &Self) -> boolfn confirm(self: & mut Self, prompt: &str) -> io::Result<bool>