Skip to content

prompt

Structs

Traits


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: Print prompt to stderr, read one line from stdin, return true

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) -> bool
    • fn confirm(self: & mut Self, prompt: &str) -> io::Result<bool>