package
0.11.1
Repository: https://github.com/terramate-io/terramate.git
Documentation: pkg.go.dev

# Packages

Package genfile implements generate_file code generation.
Package genhcl implements generate_hcl code generation.
Package sharing implements the loading of sharing related blocks.

# Functions

DetectOutdated will verify if the given config has outdated code in the target tree and return a list of filenames that are outdated, ordered lexicographically.
Do will generate code for the entire configuration.
ListStackGenFiles will list the path of all generated code inside the given dir and all its subdirs that are not stacks.
Load will load all the generated files inside the given tree.

# Constants

ErrAssertion indicates that code generation configuration has a failed assertion.
ErrConflictingConfig indicates that two code generation configurations are conflicting, like both generates a file with the same name and would overwrite each other.
ErrInvalidGenBlockLabel indicates that a generate block has an invalid label as the target to save the generated code.
ErrLoadingGlobals indicates failure loading globals during code generation.
ErrManualCodeExists indicates code generation would replace code that was not previously generated by Terramate.

# Structs

FailureResult represents a failure on code generation.
LoadResult represents all generated files of a specific directory.
Report has the results of the code generation process.
Result represents code generation result.

# Interfaces

GenFile represents a generated file loaded from a Terramate configuration.