interactive

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterInput

func FilterInput(r rune) (rune, bool)

Types

type Interactive

type Interactive struct {
	readline.Instance
}

func NewEx

func NewEx(cfg *readline.Config) (*Interactive, error)

func (*Interactive) Confirm

func (i *Interactive) Confirm(q string) bool

func (*Interactive) PasswordQuestion

func (i *Interactive) PasswordQuestion(msg string, required bool) (result string)

func (*Interactive) PreparePrompt

func (i *Interactive) PreparePrompt(q string)

func (*Interactive) Question

func (i *Interactive) Question(q string, required bool, def string) string

func (*Interactive) ServerPassword

func (i *Interactive) ServerPassword(required bool) ([]byte, string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL