Documentation
¶
Overview ¶
Package kclautomation provides functionality for automated KCL code manipulation.
This package implements operations to programmatically create, update, and manipulate KCL files. It provides a structured approach to modify KCL configuration, wrapping existing KCL automation tooling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File = &file{}
File is a concurrency-safe KCL file writer.
Functions ¶
func SpecPathJoin ¶
SpecPathJoin joins path components with dots, splitting any components that already contain dots.
Types ¶
type Automation ¶
Automation represents a collection of keys and their associated values for automation.
func (Automation) GetSpecs ¶
func (a Automation) GetSpecs(specPath string) ([]string, error)
GetSpecs returns a sorted list of specs which can be passed to kcl-lang.io/kcl-go.OverrideFile.
type MapValue ¶
type MapValue struct {
// contains filtered or unexported fields
}
MapValue represents a value that can be either a string or a boolean.