package yamlutil

import "github.com/coreos/pkg/yamlutil"

Index

Functions

func SetFlagsFromYaml

func SetFlagsFromYaml(fs *flag.FlagSet, rawYaml []byte) (err error)

SetFlagsFromYaml goes through all registered flags in the given flagset, and if they are not already set it attempts to set their values from the YAML config. It will use the key REPLACE(UPPERCASE(flagname), '-', '_')

Types

type ErrorSlice

type ErrorSlice []error

func (ErrorSlice) Error

func (e ErrorSlice) Error() string

Source Files

yaml.go

Version
v0.0.0-20240122114842-bbd7aa9bf6fb (latest)
Published
Jan 22, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
2 weeks ago

Tools for package owners.