cliext

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration added in v1.8.0

func ParseDuration(val string) (time.Duration, error)

func ParseMapValue

func ParseMapValue(val interface{}) map[string][]string

ParseMapValue returns map from the interface object

Types

type EnumValue

type EnumValue struct {
	Enum    []string
	Default string
	// contains filtered or unexported fields
}

func (*EnumValue) Set

func (e *EnumValue) Set(value string) error

func (EnumValue) String

func (e EnumValue) String() string

type MapValue

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

MapValue allows passing multiple key/value pairs from the command line args. This is an extension for github.com/urfave/cli

func NewMapValue

func NewMapValue() *MapValue

func (*MapValue) Serialize

func (mv *MapValue) Serialize() string

Serialize method is used internally by github.com/urfave/cli

func (*MapValue) Set

func (mv *MapValue) Set(param string) error

Set parses and stored key/value to the map in "a: b" format

func (MapValue) String

func (mv MapValue) String() string

Jump to

Keyboard shortcuts

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