confyg: Index | Files

package flagconfyg

import ""

Package flagconfyg is a hack around confyg. This will blindly convert config verbs to flag values.


Package Files


func CmdParse Uses

func CmdParse(path string)

CmdParse is a quick wrapper for command usage. It explodes on errors.

func Dump Uses

func Dump(fs *flag.FlagSet) []byte

Dump turns a flagset's values into a configuration file.

func Parse Uses

func Parse(name string, data []byte, fs *flag.FlagSet) error

Parse parses the config file in the given file by name, bytes data and into the given flagset.

Package flagconfyg imports 6 packages (graph) and is imported by 3 packages. Updated 2019-06-30. Refresh now. Tools for package owners.