Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeFromMapping ¶
NodeFromMapping takes a yaml.Node (a mapping) and uses yit to find a child node in the mapping with the given key.
Types ¶
type Context ¶
type Context struct {
ConfigFile string
}
Context contains the default settings for renovations.
type Option ¶
func WithConfig ¶
WithConfig sets the config file to do renovations on.
type RenovationContext ¶
type RenovationContext struct { Context *Context Configuration *config.Configuration Vars map[string]string }
RenovationContext encapsulates state relating to an ongoing renovation.
func (*RenovationContext) LoadConfig ¶
func (rc *RenovationContext) LoadConfig(ctx context.Context) error
LoadConfig loads the configuration data into an AST for renovation.
func (*RenovationContext) WriteConfig ¶
func (rc *RenovationContext) WriteConfig() error
WriteConfig writes the modified configuration data back to the config file.
Click to show internal directories.
Click to hide internal directories.