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 stderr is attached to a terminal capable of answering.
  • confirm: Print prompt and read a single y/N answer. Default is false.

firma_run::authority::prompt::StdAuthorityPrompt

Section titled “firma_run::authority::prompt::StdAuthorityPrompt”

Struct

Production implementation backed by dialoguer on stderr.

Unit Struct

Trait Implementations:

  • AuthorityPromptIo
    • fn is_tty(self: &Self) -> bool
    • fn confirm(self: & mut Self, prompt: &str) -> io::Result<bool>