mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
feat: Add support for fetching the module header from any file (#217)
* Add support for fetching the module header from any file * fix the failing test because of lines reader
This commit is contained in:
@@ -158,7 +158,8 @@ func printExample(buf *bytes.Buffer, name string) error {
|
||||
settings := print.NewSettings()
|
||||
settings.ShowColor = false
|
||||
options := &module.Options{
|
||||
Path: "./examples",
|
||||
Path: "./examples",
|
||||
HeaderFromFile: "main.tf",
|
||||
SortBy: &module.SortBy{
|
||||
Name: settings.SortByName,
|
||||
Required: settings.SortByRequired,
|
||||
|
||||
Reference in New Issue
Block a user