mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
refactor: Add tfconf.Options to load Module with (#193)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user