terminal

package
v6.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptYesNo

func PromptYesNo(prompt string, defaultAnswer bool) bool

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

func ReadInput

func ReadInput() (string, error)

ReadInput Capture user input for a question

Types

This section is empty.

Jump to

Keyboard shortcuts

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