-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read config from relative path, absolute, or $HOME
Configuration can be loaded with `-c, --config string` which accepts both relative and absolute paths. $ pwd /path/to/parent/folder $ tree . ├── module-a │ └── main.tf ├── module-b │ └── main.tf ├── ... └── .terraform-docs.yml # executing from parent $ terraform-docs -c .terraform-docs.yml module-a/ # executing from child $ cd module-a/ $ terraform-docs -c ../.terraform-docs.yml . # or an absolute path $ terraform-docs -c /path/to/parent/folder/.terraform-docs.yml . The order for looking for config file is: 1. root of module directory 2. current directory 3. `$HOME/.tfdocs.d/` if `.terraform-docs.yml` is found in any of the folders above, that will take precedence and will override the other ones. Note that values passed directly as CLI flags will override all of the above. Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
- Loading branch information
Showing
10 changed files
with
325 additions
and
822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.