helper

package
v1.55.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagTypeFromVariations added in v1.50.0

func FlagTypeFromVariations(variations map[string]*any) (model.FlagType, error)

func PrintFatalAndExit added in v1.46.0

func PrintFatalAndExit(err error)

Types

type Level

type Level = string
const (
	WarnLevel    Level = "WARNING"
	InfoLevel    Level = "INFO"
	ErrorLevel   Level = "ERROR"
	DefaultLevel Level = "DEFAULT"
)

type Output

type Output struct {
	Lines []OutputLine
}

func (*Output) Add

func (o *Output) Add(line string, level Level) Output

func (*Output) PrintLines

func (o *Output) PrintLines(cmd *cobra.Command)

type OutputLine

type OutputLine struct {
	Text  string
	Level Level
}

Jump to

Keyboard shortcuts

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