cmd

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigVar

func ConfigVar(flags *pflag.FlagSet, p *string)

ConfigVar defines a string flag named config accepting a configuration file path. The argument p points to a string variable in which to store the value of the flag.

func VerboseVar

func VerboseVar(flags *pflag.FlagSet, p *bool)

Types

type GlobalOptions

type GlobalOptions struct {
	Config  string
	Verbose bool
}

func (*GlobalOptions) ApplyFlags added in v0.0.9

func (opts *GlobalOptions) ApplyFlags(flags *pflag.FlagSet)

func (*GlobalOptions) NewConfig

func (opts *GlobalOptions) NewConfig() config.Config

Jump to

Keyboard shortcuts

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