cli

package
v0.0.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SurveyAskOne = func(p survey.Prompt, response interface{}, opts ...survey.AskOpt) error {
	return survey.AskOne(p, response, opts...)
}
View Source
var (
	ValidateConfigError = errors.New("ValidateConfigError")
)

Functions

func Select

func Select(msg string, options []string, defaultVal string) string

func StubSurveyAskOne

func StubSurveyAskOne(val string) func()

Types

type Factory

type Factory struct {
	In     io.ReadCloser
	Out    io.Writer
	ErrOut io.Writer

	Config     func() (config.Config, error)
	Logger     *zap.Logger
	Executable string
}

func NewFactory

func NewFactory(appVersion string, logger *zap.Logger) (*Factory, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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