config: some docs

This commit is contained in:
Mitchell Hashimoto 2014-07-20 17:54:16 -07:00
parent 06cdd4fa42
commit 77ff9c3a6b
1 changed files with 8 additions and 1 deletions

View File

@ -33,7 +33,14 @@ func Load(path string) (*Config, error) {
}
// LoadDir loads all the Terraform configuration files in a single
// directory and merges them together.
// directory and appends them together.
//
// Special files known as "override files" can also be present, which
// are merged into the loaded configuration. That is, the non-override
// files are loaded first to create the configuration. Then, the overrides
// are merged into the configuration to create the final configuration.
//
// Files are loaded in lexical order.
func LoadDir(root string) (*Config, error) {
var files, overrides []string