simple

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

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

func Default

func Default() *UI

func New

func New(in *bufio.Reader, out io.Writer) *UI

func (*UI) Choose

func (ui *UI) Choose(_ context.Context, question string, defaultValue string, options []string) ([]string, error)

func (*UI) Error

func (ui *UI) Error(_ context.Context, message string) error

func (*UI) Info

func (ui *UI) Info(_ context.Context, message string) error

func (*UI) Many

func (ui *UI) Many(_ context.Context, question string, defaultValue string) ([]string, error)

func (*UI) One

func (ui *UI) One(_ context.Context, question string, defaultValue string) (string, error)

func (*UI) Select

func (ui *UI) Select(_ context.Context, question string, defaultValue string, options []string) (string, error)

func (*UI) Title

func (ui *UI) Title(_ context.Context, message string) error

Jump to

Keyboard shortcuts

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