Commit Graph

309 Commits

Author SHA1 Message Date
Khosrow Moossavi
dfeaaecdc4 Migrate to github.com/terraform-docs org (#288)
* Migrate to github.com/terraform-docs org

* remove codecov token

* update maintenance notice in README
2020-07-06 19:43:25 -04:00
Khosrow Moossavi
6e259baf87 docs: Add detail about module header usage guide (#282) 2020-06-27 16:14:38 -04:00
dependabot-preview[bot]
9357d775f1 build(deps): bump github.com/zclconf/go-cty from 1.5.0 to 1.5.1 (#280)
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zclconf/go-cty/compare/v1.5.0...v1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-27 15:42:25 -04:00
Ryan King
57de612e29 fix 'doccs' typo (#279)
s/doccs/docs/
2020-06-24 11:54:05 -04:00
dependabot-preview[bot]
2720f2c35b build(deps): bump github.com/zclconf/go-cty from 1.4.2 to 1.5.0 (#277)
* build(deps): bump github.com/zclconf/go-cty from 1.4.2 to 1.5.0

Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zclconf/go-cty/compare/v1.4.2...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* mod tidy

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-06-12 13:21:50 -04:00
dependabot-preview[bot]
cd912b1d3f build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1 (#274)
* build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.6.0...v1.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* tidy vendor

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-06-05 13:19:47 -04:00
dependabot-preview[bot]
8f2e271754 build(deps): bump github.com/hashicorp/hcl/v2 from 2.5.1 to 2.6.0 (#273)
* build(deps): bump github.com/hashicorp/hcl/v2 from 2.5.1 to 2.6.0

Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/v2.6.0/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.5.1...v2.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* tidy vendor

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-06-05 13:14:58 -04:00
dependabot-preview[bot]
cd09faf4c4 build(deps): bump github.com/zclconf/go-cty from 1.4.1 to 1.4.2 (#271)
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zclconf/go-cty/compare/v1.4.1...v1.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-02 19:38:41 -04:00
dependabot-preview[bot]
36be49175a build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#268)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.1...v1.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-30 18:56:17 -04:00
Khosrow Moossavi
e0404399a7 feat: Add new flags: --show, --show-all, --hide-all (#267)
* Add new flags: --show, --show-all, --hide-all

* add deprecated flags to Config

* update docs

* add implementation for new flags

Examples:

- hide all sections except one (or more): `terraform-docs --hide-all --show <name> ...`
- show all sections except one (or more): `terraform-docs --show-all --hide <name> ...`
2020-05-25 12:08:52 -04:00
Khosrow Moossavi
04a9ef49eb refactor: Refactor cli implemention and configuration (#266)
* Refactor cli implemention and configuration

* cleanup
2020-05-20 22:21:19 -04:00
Khosrow Moossavi
085cac0c54 Update Changelog 2020-05-20 11:49:45 -04:00
Khosrow Moossavi
23c50e0ad8 refactor: Deprecate multiple flags in favor of new ones (#265)
BREAKING CHANGE: - Following flags have been deprecated and will be
removed in the following releases:

  - Flag `--no-color` has been deprecated, use `--color=false` instead

  - Flag `--no-escape` has been deprecated, use `--escape=false` instead

  - Flag `--no-header` has been deprecated, use `--hide header` instead

  - Flag `--no-inputs` has been deprecated, use `--hide inputs` instead

  - Flag `--no-outputs` has been deprecated, use `--hide outputs` instead

  - Flag `--no-providers` has been deprecated, use `--hide providers` instead

  - Flag `--no-requirements` has been deprecated, use `--hide requirements` instead

  - Flag `--no-required` has been deprecated, use `--required=false` instead

  - Flag `--no-sensitive` has been deprecated, use `--sensitive=false` instead

  - Flag `--no-sort` has been deprecated, use `--sort=false` instead
2020-05-20 11:49:25 -04:00
Khosrow Moossavi
8de80061fe Put terraform-docs imports after 3rd-party packages (#264) 2020-05-19 18:18:15 -04:00
dependabot-preview[bot]
027e6dfac6 build(deps): bump github.com/zclconf/go-cty from 1.4.0 to 1.4.1 (#263)
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zclconf/go-cty/compare/v1.4.0...v1.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-19 12:09:25 -04:00
Khosrow Moossavi
dfa9e97d45 Update Changelog 2020-05-14 12:41:42 -04:00
Khosrow Moossavi
b397b7d46b feat: Add support for TOML renderer (#197)
* Add support for TOML renderer

* Add kind:formatter to toml command

* update docs

* adjust tests after merge

* fix after merge

* adjust tests after merge

* update docs

* remove vendor leftovers

* update doc

* update tests
2020-05-14 12:41:21 -04:00
dependabot-preview[bot]
6ed89d2769 build(deps): bump github.com/hashicorp/hcl/v2 from 2.5.0 to 2.5.1 (#262)
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/v2.5.1/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.5.0...v2.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 10:06:17 -04:00
dependabot-preview[bot]
342db66d96 build(deps): bump gopkg.in/yaml.v2 from 2.2.8 to 3.0.0 (#260)
* build(deps): bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0

Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.8 to 2.3.0.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.8...v2.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* bump gopkg.in/yaml to v3

* set indentation to 2

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-05-13 18:53:01 -04:00
Khosrow Moossavi
8d9c54f1df build(deps): bump github.com/spf13/cobra from 0.0.7 to 1.0.0 (#261) 2020-05-13 11:45:59 -04:00
Khosrow Moossavi
342f474287 Add explicit issue templates for bug and feature request (#257) 2020-05-07 16:14:53 -04:00
dependabot-preview[bot]
6034c1034b build(deps): bump github.com/hashicorp/hcl/v2 from 2.4.0 to 2.5.0 (#254)
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/v2.5.0/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.4.0...v2.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-07 10:29:35 -04:00
Khosrow Moossavi
f944987c90 Remove vendor folder from repo (#249)
* remove vendor folder

* appease staticcheck

* rename to verify

* fix test coverage job
2020-05-02 19:20:43 -04:00
Khosrow Moossavi
fbbf01e451 Read header from .adoc, .md and .txt file as well (#252)
* Allow reading header from a markdown file

* wording

* add supports for .adoc and .txt as well

* wording

* revert docs

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-29 15:30:48 -04:00
dependabot-preview[bot]
5aaf499280 build(deps): bump github.com/go-test/deep from 1.0.5 to 1.0.6 (#250)
* build(deps): bump github.com/go-test/deep from 1.0.5 to 1.0.6

Bumps [github.com/go-test/deep](https://github.com/go-test/deep) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/go-test/deep/releases)
- [Changelog](https://github.com/go-test/deep/blob/master/CHANGES.md)
- [Commits](https://github.com/go-test/deep/compare/v1.0.5...v1.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* update vendor

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-22 14:09:20 -04:00
dependabot-preview[bot]
29d3c523db build(deps): bump mvdan.cc/xurls/v2 from 2.1.0 to 2.2.0 (#248)
* build(deps): bump mvdan.cc/xurls/v2 from 2.1.0 to 2.2.0

Bumps [mvdan.cc/xurls/v2](https://github.com/mvdan/xurls) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/mvdan/xurls/releases)
- [Commits](https://github.com/mvdan/xurls/compare/v2.1.0...v2.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* update vendors

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-17 12:56:25 -04:00
dependabot-preview[bot]
7b68f3cf0e build(deps): bump github.com/hashicorp/hcl/v2 from 2.3.0 to 2.4.0 (#247)
* build(deps): bump github.com/hashicorp/hcl/v2 from 2.3.0 to 2.4.0

Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/v2.4.0/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.3.0...v2.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* update vendors

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-14 11:21:22 -04:00
Khosrow Moossavi
b25909b537 feat: Add new flag to sort inputs by type (#246)
* Add new flag to sort inputs by type

* add more tests

* revert renames
2020-04-13 17:43:21 -04:00
Khosrow Moossavi
4b22658596 Update Changelog 2020-04-13 13:34:32 -04:00
Khosrow Moossavi
595c5c5dfd Appease redundant type from array warning 2020-04-13 13:34:11 -04:00
Khosrow Moossavi
b6a6ad1bbf refactor: Remove deprecated flags (#229)
BREAKING CHANGE: - Flags `--with-aggregate-type-defaults` and
`--sort-inputs-by-required` were marked as deprecated in v0.8.2
and now are removed.
2020-04-13 12:54:48 -04:00
Khosrow Moossavi
f6624c1f26 Update Changelog 2020-04-12 15:23:35 -04:00
Rubén del Campo
37375db283 feat: Add support for AsciiDoc renderer (#241)
* Implement AsciiDoc renderer

* Add missing tests to maintain expected code coverage

* Keep alphabetical order

* Refactor indent function (accept char argument and make homogeneous for both MD and Adoc renderers)

* Force asciidoc syntax in every table column

* Remove extra NL before code blocks and add autowidth tables

* Move char argument after settings in indent function

* Implement new factory function for asciidoc renderer

* Update asciidoc table docs

* Return empty indentation if no indent scpecified

* Prevent adding a trailing whitespace in table rows

* Change asciidoc alias to match file extension

* Update docs
2020-04-12 15:22:53 -04:00
Khosrow Moossavi
c196c7cc49 refactor: Add factory function to return format types (#243) 2020-04-10 19:08:37 -04:00
Khosrow Moossavi
57a3584bed refactor: Reorganize markdown format tests (#244) 2020-04-10 19:05:45 -04:00
dependabot-preview[bot]
f060a2df4d build(deps): bump github.com/zclconf/go-cty from 1.3.1 to 1.4.0 (#239)
* build(deps): bump github.com/zclconf/go-cty from 1.3.1 to 1.4.0

Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zclconf/go-cty/compare/v1.3.1...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* update vendors

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-08 14:49:14 -04:00
Khosrow Moossavi
9122e396db Bump homebrew formula to v0.9.1 2020-04-03 13:07:23 -04:00
Khosrow Moossavi
f5da239450 Bump version to v0.10.0-alpha 2020-04-02 17:58:16 -04:00
Khosrow Moossavi
7f761d3fc3 Update Changelog v0.9.1 2020-04-02 17:58:09 -04:00
Khosrow Moossavi
7190091d07 Release version v0.9.1 2020-04-02 17:58:05 -04:00
Khosrow Moossavi
80172d77f4 fix: Don't crash when reading header if 'main.tf' not found (#235)
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-02 16:17:30 -04:00
Khosrow Moossavi
a514d6e78f Bump version to v0.9.1-alpha 2020-04-02 14:28:22 -04:00
Khosrow Moossavi
8f930437fa fix: Make sure requirements section is sorted (#233)
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2020-04-01 17:25:52 -04:00
Khosrow Moossavi
610d57bc88 Link to original terraform-config-inspect repo (#230) 2020-04-01 11:47:20 -04:00
Khosrow Moossavi
9c0c316eb5 Bump homebrew formula to v0.9.0 2020-04-01 11:20:31 -04:00
Khosrow Moossavi
cfe781f820 Update list of authors 2020-03-31 16:19:40 -04:00
Khosrow Moossavi
b233450fa3 Bump version to v0.10.0-alpha 2020-03-31 16:18:38 -04:00
Khosrow Moossavi
89b129b870 Update Changelog v0.9.0 2020-03-31 16:18:30 -04:00
Khosrow Moossavi
f1bd8bea72 Release version v0.9.0 2020-03-31 16:18:26 -04:00
Khosrow Moossavi
357610bb38 Update Changelog 2020-03-30 16:17:50 -04:00