flag

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args = cli.Args

Args contains apps console arguments

type Value

type Value interface {
	Kernel() *cli.Context
	Int(name string) int
	GlobalInt(name string) int
	Int64(name string) int64
	GlobalInt64(name string) int64
	Uint(name string) uint
	GlobalUint(name string) uint
	Uint64(name string) uint64
	GlobalUint64(name string) uint64
	IntSlice(name string) []int
	GlobalIntSlice(name string) []int
	Int64Slice(name string) []int64
	GlobalInt64Slice(name string) []int64
	String(name string) string
	GlobalString(name string) string
	StringSlice(name string) []string
	GlobalStringSlice(name string) []string
	Duration(name string) time.Duration
	GlobalDuration(name string) time.Duration
	Bool(name string) bool
	GlobalBool(name string) bool
	NumFlags() int
	Set(name, value string) error
	GlobalSet(name, value string) error
	IsSet(name string) bool
	GlobalIsSet(name string) bool
	FlagNames() (names []string)
	GlobalFlagNames() (names []string)
	NArg() int
	Args() Args
}

func NewValue

func NewValue(ctx *cli.Context) Value

Jump to

Keyboard shortcuts

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