ux

package
v0.34.22 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProgressIndicator

type MockProgressIndicator struct{}

func NewMockProgressIndicator

func NewMockProgressIndicator() *MockProgressIndicator

func (*MockProgressIndicator) Fail

func (s *MockProgressIndicator) Fail(string)

func (*MockProgressIndicator) Start

func (s *MockProgressIndicator) Start(string)

func (MockProgressIndicator) Stop

func (s MockProgressIndicator) Stop()

func (MockProgressIndicator) Success

func (s MockProgressIndicator) Success(string)

type MockPrompter

type MockPrompter struct {
	PromptYesNoVal             bool
	PromptMultiSelectAll       bool
	PromptYesNoErr             error
	PromptYesNoCallCount       int
	PromptMultiSelectVal       []string
	PromptMultiSelectErr       error
	PromptMultiSelectCallCount int
}

func NewMockPrompter

func NewMockPrompter() *MockPrompter

func (*MockPrompter) MultiSelect added in v0.18.21

func (p *MockPrompter) MultiSelect(msg string, options []string) ([]string, error)

func (*MockPrompter) PromptYesNo

func (p *MockPrompter) PromptYesNo(msg string) (bool, error)

type PlainProgress added in v0.18.19

type PlainProgress struct {
}

func NewPlainProgress added in v0.18.19

func NewPlainProgress() *PlainProgress

func (*PlainProgress) Fail added in v0.18.19

func (p *PlainProgress) Fail(msg string)

func (*PlainProgress) Start added in v0.18.19

func (p *PlainProgress) Start(msg string)

func (*PlainProgress) Stop added in v0.18.19

func (p *PlainProgress) Stop()

func (*PlainProgress) Success added in v0.18.19

func (p *PlainProgress) Success(msg string)

type ProgressIndicator

type ProgressIndicator interface {
	Fail(string)
	Success(string)
	Start(string)
	Stop()
}

type PromptUIPrompter

type PromptUIPrompter struct{}

func NewPromptUIPrompter

func NewPromptUIPrompter() *PromptUIPrompter

func (*PromptUIPrompter) MultiSelect added in v0.18.21

func (p *PromptUIPrompter) MultiSelect(msg string, options []string) ([]string, error)

func (*PromptUIPrompter) PromptYesNo

func (p *PromptUIPrompter) PromptYesNo(msg string) (bool, error)

type Spinner

type Spinner struct {
	*spinnerLib.Spinner
}

func NewSpinner

func NewSpinner() *Spinner

func (*Spinner) Fail

func (s *Spinner) Fail(msg string)

func (*Spinner) Start

func (s *Spinner) Start(msg string)

func (*Spinner) Stop

func (s *Spinner) Stop()

func (*Spinner) Success

func (s *Spinner) Success(msg string)

Jump to

Keyboard shortcuts

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