nice

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 8 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 {
}

func New

func New() *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(ctx 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