Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flag "--recursive" fails if "modules" folder does not exists #654

Open
@alexyz79

Description

@alexyz79

Describe the bug

When running terraform-docs with --recursive flag in a project without any "modules" folder it fails with "Error: stat modules: no such file or directory".

How can we reproduce it?

command:

./terraform-docs markdown table --recursive --output-file Readme.md .

result:

Error: stat modules: no such file or directory

expected result:
Readme.md fully rendered

Environment information

version: 0.16.0, master branch
go version: go1.19.3 linux/amd64
OS: MacOS, Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions