flags

package
v0.0.0-...-bb812c9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0, GPL-3.0, MIT 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