prompt

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT 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)
}

func NewPrompt

func NewPrompt() Interface

type Mock added in v0.1.7

type Mock struct {
	mock.Mock
}

func (*Mock) Ask added in v0.1.7

func (m *Mock) Ask(label, defaultValue 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)

Jump to

Keyboard shortcuts

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