config

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v0.30.6

func Parse(app *kingpin.Application, args []string) error

Parse parses the command line arguments and configuration files.

func ParseConfigFile added in v0.30.6

func ParseConfigFile(args []string) string

ParseConfigFile manually parses the configuration file from the command line arguments.

Types

type Resolver

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

Resolver represents a configuration file resolver for kingpin.

func NewConfigFileResolver added in v0.30.6

func NewConfigFileResolver(filePath string) (*Resolver, error)

NewConfigFileResolver returns a Resolver structure.

func (*Resolver) Bind

func (c *Resolver) Bind(app *kingpin.Application, args []string) error

Bind sets active flags with their default values from the configuration file(s).

Jump to

Keyboard shortcuts

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