settings

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestLoadFile_to_ExecProgram_Args

func TestLoadFile_to_ExecProgram_Args(t *testing.T)

Types

type ConfigStruct

type ConfigStruct struct {
	InputFiles []string `yaml:"file"`
	Output     string   `yaml:"output"`

	Overrides    []string `yaml:"overrides"`
	PathSelector []string `yaml:"path_selector"`

	StrictRangeCheck bool `yaml:"strict_range_check"`
	DisableNone      bool `yaml:"disable_none"`
	Verbose          int  `yaml:"verbose"`
	Debug            bool `yaml:"debug"`
}

type KeyValueStruct

type KeyValueStruct struct {
	Key   string      `yaml:"key"`
	Value interface{} `yaml:"value"`
}

type SettingsFile

type SettingsFile struct {
	Filename string           `yaml:"-"`
	Config   ConfigStruct     `yaml:"kcl_cli_configs"`
	Options  []KeyValueStruct `yaml:"kcl_options"`
}

func LoadFile

func LoadFile(filename string, src interface{}) (f *SettingsFile, err error)

func (*SettingsFile) To_ExecProgram_Args

func (settings *SettingsFile) To_ExecProgram_Args() *gpyrpc.ExecProgram_Args

Jump to

Keyboard shortcuts

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