Crate git_prompt

Source
Expand description

Git style prompting with support for GIT_ASKPASS and askpass program configuration.

§Compatibility

This is a unix-only crate which will return with an error when trying to obtain any prompt on other platforms. On those platforms it is common to have helpers which perform this task so it shouldn’t be a problem.

Modules§

unix

Structs§

Options
The options used in [ask()].

Enums§

Error
The error returned by ask().
Mode
The way the user is prompted.

Functions§

ask
Ask the user given a prompt, returning the result.
openly
Ask for information typed by the user into the terminal after showing the prompt, like “Username: `.
securely
Ask for information securely after showing the prompt (like "password: ") by not showing what’s typed.