Crate question [] [src]

An easy to use library for asking users questions when designing Command Line Interface applications. Reduces asking questions to a one liner.

Examples

Asking a user a yes or no question requiring that a valid response is provided.

Question::new("Do you want to continue?").confirm();

Structs

Question

An Answer builder. Once a question has been formulated either ask or confirm may be used to get an answer.

Enums

Answer

An answer, the result of asking a Question.