beats: github.com/elastic/beats/libbeat/common/terminal Index | Files

package terminal

import "github.com/elastic/beats/libbeat/common/terminal"

Index

Package Files

terminal.go

func PromptYesNo Uses

func PromptYesNo(prompt string, defaultAnswer bool) bool

PromptYesNo Returns true if the user has entered Y or YES, capitalization is ignored, we are matching elasticsearch behavior

func ReadInput Uses

func ReadInput() (string, error)

ReadInput Capture user input for a question

Package terminal imports 4 packages (graph) and is imported by 12 packages. Updated 2018-08-16. Refresh now. Tools for package owners.