cli

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFrequencies

func LoadFrequencies(frequencyStrs []string) []simpleradio.RadioFrequency

func SetupZerolog

func SetupZerolog(levelName, formatName string)

Types

type Enum added in v0.13.2

type Enum struct {
	// contains filtered or unexported fields
}

func NewEnum

func NewEnum(flag *string, _type string, defaultValue string, options ...string) *Enum

NewEnum creates a enumerated flag that updates the provided string variable when set. The first argument is a hint for use in help text. The second argument is the default value, or "" if there is no default. The remaining arguments are the valid options (a provided default value will be added to the list of options).

func (*Enum) Set added in v0.13.2

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

func (*Enum) String added in v0.13.2

func (e *Enum) String() string

func (*Enum) Type added in v0.13.2

func (e *Enum) Type() string

Jump to

Keyboard shortcuts

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