ui

package
v0.10.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation

func AskForConfirmation(stdin io.Reader, message string) (bool, error)

askForConfirmation asks the user for confirmation. A user must type in "y" or "n" and then press enter. It has fuzzy matching, so "y", "Y" both count as confirmations. If the input is not recognized, it will ask again. The function does not return until it gets a valid response from the user. taken from https://gist.github.com/r0l1/3dcbb0c8f6cfe9c66ab8008f55f8f28b

Types

This section is empty.

Jump to

Keyboard shortcuts

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