flag

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFlag added in v1.7.7

type IFlag interface {
	GetAliases() []string
	GetDescription() string
	GetBoolValue([]string) bool
	GetStringValue([]string) string
}

type IFlagBuilder added in v1.7.7

type IFlagBuilder interface {
	Build() IFlag
	WithDescription(string) IFlagBuilder
	WithDefaultValue(string) IFlagBuilder
}

func NewFlagBuilder added in v1.7.7

func NewFlagBuilder(pAliases ...string) IFlagBuilder

type IFlags added in v1.7.7

type IFlags interface {
	Get(string) IFlag
	List() []IFlag
	Validate([]string) bool
}

func NewFlags added in v1.7.7

func NewFlags(pFlags ...IFlag) IFlags

type IFlagsBuilder added in v1.7.7

type IFlagsBuilder interface {
	Build() IFlags
}

func NewFlagsBuilder added in v1.7.7

func NewFlagsBuilder(pArgs ...IFlagBuilder) IFlagsBuilder

Jump to

Keyboard shortcuts

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