settings

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 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 {
	InputFile  []string `yaml:"file"`
	InputFiles []string `yaml:"files"`
	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"`
	PackageMaps           map[string]string `yaml:"package_maps"`
	SortKeys              bool              `yaml:"sort_keys"`
	ShowHidden            bool              `yaml:"show_hidden"`
	IncludeSchemaTypePath bool              `yaml:"include_schema_type_path"`
}

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