command

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagTypeBool         = "bool"
	FlagTypeFloat64      = "float64"
	FlagTypeFloat64Slice = "float64_slice"
	FlagTypeInt          = "int"
	FlagTypeIntSlice     = "int_slice"
	FlagTypeInt64        = "int64"
	FlagTypeInt64Slice   = "int64_slice"
	FlagTypeString       = "string"
	FlagTypeStringSlice  = "string_slice"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolFlag added in v1.10.2

type BoolFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    bool
}

func (*BoolFlag) Type added in v1.10.2

func (receiver *BoolFlag) Type() string

type Extend

type Extend struct {
	Category string
	Flags    []Flag
}

type Flag

type Flag interface {
	Type() string
}

type Float64Flag added in v1.10.2

type Float64Flag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    float64
}

func (*Float64Flag) Type added in v1.10.2

func (receiver *Float64Flag) Type() string

type Float64SliceFlag added in v1.10.2

type Float64SliceFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    []float64
}

func (*Float64SliceFlag) Type added in v1.10.2

func (receiver *Float64SliceFlag) Type() string

type Int64Flag added in v1.10.2

type Int64Flag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    int64
}

func (*Int64Flag) Type added in v1.10.2

func (receiver *Int64Flag) Type() string

type Int64SliceFlag added in v1.10.2

type Int64SliceFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    []int64
}

func (*Int64SliceFlag) Type added in v1.10.2

func (receiver *Int64SliceFlag) Type() string

type IntFlag added in v1.10.2

type IntFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    int
}

func (*IntFlag) Type added in v1.10.2

func (receiver *IntFlag) Type() string

type IntSliceFlag added in v1.10.2

type IntSliceFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    []int
}

func (*IntSliceFlag) Type added in v1.10.2

func (receiver *IntSliceFlag) Type() string

type StringFlag added in v1.10.2

type StringFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    string
}

func (*StringFlag) Type added in v1.10.2

func (receiver *StringFlag) Type() string

type StringSliceFlag added in v1.10.2

type StringSliceFlag struct {
	Name     string
	Aliases  []string
	Usage    string
	Required bool
	Value    []string
}

func (*StringSliceFlag) Type added in v1.10.2

func (receiver *StringSliceFlag) Type() string

Jump to

Keyboard shortcuts

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