pflagutil

package
v0.0.0-...-73f2ae4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KwargJSONFlag

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

KwargJSONFlag implements pflag.Value that accepts key=value pairs and can be passed multiple times to support multiple pairs.

func NewKwargJSONFlag

func NewKwargJSONFlag(p *map[string]interface{}) *KwargJSONFlag

NewKwargJSONFlag returns an initialized KwargJSONFlag

func (*KwargJSONFlag) Set

func (f *KwargJSONFlag) Set(input string) error

Set implements pflag.Value

func (*KwargJSONFlag) String

func (f *KwargJSONFlag) String() string

String implements pflag.Value

func (*KwargJSONFlag) Type

func (f *KwargJSONFlag) Type() string

Type implements pflag.Value

type KwargStringFlag

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

KwargStringFlag implements pflag.Value that accepts key=value pairs and can be passed multiple times to support multiple pairs.

func NewKwargStringFlag

func NewKwargStringFlag(p *map[string]string) *KwargStringFlag

NewKwargStringFlag returns an initialized KwargStringFlag

func (*KwargStringFlag) Set

func (f *KwargStringFlag) Set(input string) error

Set implements pflag.Value

func (*KwargStringFlag) String

func (f *KwargStringFlag) String() string

String implements pflag.Value

func (*KwargStringFlag) Type

func (f *KwargStringFlag) Type() string

Type implements pflag.Value

type PositionalArgJSONFlag

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

PositionalArgJSONFlag implements pflag.Value that accepts a single string value and stores the value in a list of values. The flag can be specified multiple times to add more items the list of values.

func NewPositionalArgJSONFlag

func NewPositionalArgJSONFlag(p *[]interface{}) *PositionalArgJSONFlag

NewPositionalArgJSONFlag returns an initialized PositionalArgJSONFlag

func (*PositionalArgJSONFlag) Set

func (f *PositionalArgJSONFlag) Set(input string) error

Set implements pflag.Value

func (*PositionalArgJSONFlag) String

func (f *PositionalArgJSONFlag) String() string

String implements pflag.Value

func (*PositionalArgJSONFlag) Type

func (f *PositionalArgJSONFlag) Type() string

Type implements pflag.Value

type PositionalArgStringFlag

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

PositionalArgStringFlag implements pflag.Value that accepts a single string value and stores the value in a list of values. The flag can be specified multiple times to add more items the list of values.

func NewPositionalArgStringFlag

func NewPositionalArgStringFlag(p *[]string) *PositionalArgStringFlag

NewPositionalArgStringFlag returns an initialized PositionalArgStringFlag

func (*PositionalArgStringFlag) Set

func (f *PositionalArgStringFlag) Set(input string) error

Set implements pflag.Value

func (*PositionalArgStringFlag) String

func (f *PositionalArgStringFlag) String() string

String implements pflag.Value

func (*PositionalArgStringFlag) Type

func (f *PositionalArgStringFlag) Type() string

Type implements pflag.Value

Jump to

Keyboard shortcuts

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