prompt

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize added in v0.5.0

func Colorize(text string) string

func Owl added in v0.5.0

func Owl() string

Types

type Prompt added in v0.12.0

type Prompt struct {
	Out io.Writer
}

func NewPrompt added in v0.12.0

func NewPrompt(out io.Writer) *Prompt

func (*Prompt) Ask added in v0.12.0

func (p *Prompt) Ask(question string) (string, error)

func (*Prompt) AskSecret added in v0.12.0

func (p *Prompt) AskSecret(question string) (string, error)

func (*Prompt) Confirm added in v0.12.0

func (p *Prompt) Confirm(text string) bool

func (*Prompt) Description added in v0.12.0

func (p *Prompt) Description(text string)

func (*Prompt) Error added in v0.12.0

func (p *Prompt) Error(text string)

func (*Prompt) Info added in v0.12.0

func (p *Prompt) Info(text string)

func (*Prompt) Output added in v0.12.0

func (p *Prompt) Output(i ...interface{})

func (*Prompt) Print added in v0.12.0

func (c *Prompt) Print(i ...interface{})

func (*Prompt) Title added in v0.12.0

func (p *Prompt) Title(text string)

Jump to

Keyboard shortcuts

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