promptuife

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAbortEdit = errors.New("frontend: User declined to correct error")
View Source
var PromptTemplate = &promptui.PromptTemplates{
	Success: `{{ . | bold }}{{ ":" | bold }} `,
}

Functions

This section is empty.

Types

type Frontend

type Frontend struct{}

func (Frontend) Configure

func (fe Frontend) Configure(items []frontend.ConfigItem) error

func (Frontend) Confirm

func (Frontend) Confirm(q string) error

func (Frontend) EditText

func (fe Frontend) EditText(beforeEdit string, validator func(string) (string, error)) (string, error)

func (Frontend) IsInteractive added in v0.1.0

func (fe Frontend) IsInteractive() bool

Jump to

Keyboard shortcuts

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