flags

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum added in v0.7.0

type Enum struct {
	Choices []string

	Value string
	Text  string
}

Enum is a `flag.Value` for one-of-a-fixed-set string arguments. The value of the `Choices` field defines the valid choices. If `CaseSensitive` is set to `true` (default `false`), the comparison is case-sensitive.

func (*Enum) Set added in v0.7.0

func (fv *Enum) Set(v string) error

Set is flag.Value.Set

func (*Enum) String added in v0.7.0

func (fv *Enum) String() string

type StoreFlag

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

func (*StoreFlag) Connect

func (f *StoreFlag) Connect() (store.IndexedStore, error)

func (*StoreFlag) Set

func (f *StoreFlag) Set(name string) (err error)

func (*StoreFlag) String

func (f *StoreFlag) String() string

Jump to

Keyboard shortcuts

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