prompt

package
v1.10.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Ask(label, defaultValue string) (string, error)
	Select(label string, items []string) (string, error)
}

func NewPrompt

func NewPrompt() Interface

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) Ask

func (m *Mock) Ask(label, defaultValue string) (string, error)

func (*Mock) Select

func (m *Mock) Select(label string, items []string) (string, error)

type Prompt

type Prompt struct {
	// contains filtered or unexported fields
}

func (*Prompt) Ask

func (p *Prompt) Ask(label, defaultValue string) (string, error)

func (*Prompt) Select

func (p *Prompt) Select(label string, items []string) (string, error)

Jump to

Keyboard shortcuts

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