cmdutil

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FatalOnError added in v1.11.0

func FatalOnError(err error)

FatalOnError prints error to stderr and shuts down the application.

Used when logging facility isn't initialized yet.

Does nothing if passed error is nil.

Types

type StringsListValue

type StringsListValue []string

StringsListValue is comma-separated list of values that implements flag.Value interface.

func NewStringsListValue

func NewStringsListValue(p *[]string) *StringsListValue

NewStringsListValue returns a new StringsListValue

func (*StringsListValue) Set

func (s *StringsListValue) Set(s2 string) error

Set implements flag.Value

func (StringsListValue) String

func (s StringsListValue) String() string

String implements flag.Value

type TextUnmarshalerValue added in v1.11.0

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

TextUnmarshalerValue is flag.Value adapter for values which implement encoding.TextUnmarshaler interface.

func NewTextUnmarshalerValue added in v1.11.0

func NewTextUnmarshalerValue(dest encoding.TextUnmarshaler) *TextUnmarshalerValue

func (TextUnmarshalerValue) Set added in v1.11.0

Set implements flag.Value

func (TextUnmarshalerValue) String added in v1.11.0

func (t TextUnmarshalerValue) String() string

String implements flag.Value

func (*TextUnmarshalerValue) WithDefaults added in v1.11.0

func (t *TextUnmarshalerValue) WithDefaults(defaultValue string) *TextUnmarshalerValue

Jump to

Keyboard shortcuts

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