feat: Show 'providers' information (#140)

* Show 'providers' information

* Fix for unsorted providers list

BREAKING CHANGE: - With Terraform 0.12 the information about `providers` being used in the module will be generated by default. This will cause the first generation of documents with the latest release of `terraform-docs` binary be slightly different than before, now there will be `Providers` section in Markdown and `providers` block in JSON. You can ignore this by using new `--no-providers` flag if you choose to.

Originally-Authored-By: Thomas Alton <thomas.alton@gmail.com>
Original-Pull-Request: #113
This commit is contained in:
Khosrow Moossavi
2020-01-03 18:33:08 -05:00
committed by GitHub
parent 80978e92f0
commit ce32bf10a9
28 changed files with 427 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
resource "tls_private_key" "baz" {}
data "aws_caller_identity" "current" {
provider = "aws"
}
@@ -9,3 +11,4 @@ terraform {
aws = ">= 2.15.0"
}
}
resource "null_resource" "foo" {}