options

package
v0.0.0-...-2984f7a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultConfigDir = "."

DefaultConfigDir default current working directory

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerOptions

type ControllerOptions struct {
	ConfigFile string
}

ControllerOptions describes gm options

func NewControllerOptions

func NewControllerOptions() *ControllerOptions

NewControllerOptions creates a new gm options

func (*ControllerOptions) Config

Config returns a config.ControllerConfig

func (*ControllerOptions) Flags

func (o *ControllerOptions) Flags() (fss cliflag.NamedFlagSets)

Flags returns flags of ControllerOptions

func (*ControllerOptions) Validate

func (o *ControllerOptions) Validate() []error

Validate validates the ControllerOptions

Jump to

Keyboard shortcuts

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