refactor: Add tfconf.Options to load Module with (#193)

This commit is contained in:
Khosrow Moossavi
2020-02-11 14:56:02 -05:00
committed by GitHub
parent 54ab7f9bbb
commit d4a0663909
9 changed files with 32 additions and 14 deletions

View File

@@ -159,7 +159,10 @@ func printExample(buf *bytes.Buffer, name string) error {
buf.WriteString("```\n\n")
buf.WriteString("generates the following output:\n\n")
module, err := tfconf.CreateModule("./examples")
options := &tfconf.Options{
Path: "./examples",
}
module, err := tfconf.CreateModule(options)
if err != nil {
log.Fatal(err)
}