Versions in this module Expand all Collapse all v1 v1.6.11 Feb 20, 2018 v1.6.10 Jan 18, 2018 Changes in this version + var Stdin io.Reader = os.Stdin + var Stdout io.Writer = os.Stdout + func AskForBool(ctx context.Context, text string, def bool) (bool, error) + func AskForConfirmation(ctx context.Context, text string) bool + func AskForInt(ctx context.Context, text string, def int) (int, error) + func AskForKeyImport(ctx context.Context, key string, names []string) bool + func AskForPassword(ctx context.Context, name string) (string, error) + func AskForString(ctx context.Context, text, def string) (string, error) + func HasPassPromptFunc(ctx context.Context) bool + func WithPassPromptFunc(ctx context.Context, ppf PassPromptFunc) context.Context + type LineReader struct + func NewReader(r io.Reader) *LineReader + func (lr LineReader) Read(p []byte) (int, error) + func (lr LineReader) ReadLine() (string, error) + type PassPromptFunc func(context.Context, string) (string, error) + func GetPassPromptFunc(ctx context.Context) PassPromptFunc