flags

package
v4.0.0-...-b8b0360 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumValue

type EnumValue struct {
	Name        string
	Usage       string
	Destination *string
	Enum        []string
	Value       string
}

EnumValue allows the cli to present a fixed set of string values.

func (EnumValue) GenericFlag

func (e EnumValue) GenericFlag() *cli.GenericFlag

Wraps the EnumValue in a GenericFlag value so that it satisfies the cli.Flag interface.

func (*EnumValue) Set

func (e *EnumValue) Set(value string) error

func (*EnumValue) String

func (e *EnumValue) String() string

Jump to

Keyboard shortcuts

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