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:
Khosrow Moossavi
2020-03-12 13:58:35 -04:00
committed by GitHub
parent 7c91a310ce
commit 01c8fa1c61
31 changed files with 1350 additions and 17 deletions

View File

@@ -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,