Skip to content

Commit 77ff9c3

Browse files
committed
config: some docs
1 parent 06cdd4f commit 77ff9c3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎config/loader.go‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ func Load(path string) (*Config, error) {
3333
}
3434

3535
// LoadDir loads all the Terraform configuration files in a single
36-
// directory and merges them together.
36+
// directory and appends them together.
37+
//
38+
// Special files known as "override files" can also be present, which
39+
// are merged into the loaded configuration. That is, the non-override
40+
// files are loaded first to create the configuration. Then, the overrides
41+
// are merged into the configuration to create the final configuration.
42+
//
43+
// Files are loaded in lexical order.
3744
func LoadDir(root string) (*Config, error) {
3845
var files, overrides []string
3946

0 commit comments

Comments
 (0)