prompts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiredInput

func RequiredInput(label string) (string, error)

RequiredInput create a prompt and require that an input is supplied

func RequiredInputWithDefault

func RequiredInputWithDefault(label, defaultValue string) (string, error)

RequiredInputWithDefault create a prompt and require that an input is supplied, specify a default value

func SelectItem

func SelectItem(label string, items []string) (string, error)

func SelectItemSkipable

func SelectItemSkipable(label string, items []string, skipable bool) (selected string, skipped bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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