Commit Graph

201 Commits

Author SHA1 Message Date
Khosrow Moossavi
c7178b19df Update Changelog v0.8.0 2020-01-17 14:46:26 -05:00
Khosrow Moossavi
6a8689d625 Release version v0.8.0 2020-01-17 14:44:26 -05:00
Khosrow Moossavi
d0ec592ccb Update Changelog 2020-01-17 13:47:19 -05:00
Khosrow Moossavi
6ff46a26b1 fix: Do not escape any characters of a URL (#170) 2020-01-17 13:45:48 -05:00
Khosrow Moossavi
0227bb9d8d docs: Initial commit of usage documentation (#162)
* Initial commit of usage documentation

* update json document
2020-01-17 12:49:15 -05:00
Khosrow Moossavi
ccf2bcd3da fix: Add double space at the end of multi-lines paragraph (#169) 2020-01-17 12:40:46 -05:00
Khosrow Moossavi
a5e91258d6 Update Changelog 2020-01-16 17:35:54 -05:00
Khosrow Moossavi
e56a8b8abd Update Changelog 2020-01-16 17:09:42 -05:00
Khosrow Moossavi
1d33e9d03c fix: Show empty JSON properties, as 'null' for all types (#166)
* Show empty JSON properties, as 'null' for all types

* fix lint issue
v0.8.0-rc.3
2020-01-16 16:53:52 -05:00
Khosrow Moossavi
888bf9e1d1 fix: Do not wrap multiline blocks in table with <code> (#164) 2020-01-16 15:05:04 -05:00
Khosrow Moossavi
cbe4a00843 Update dependencies 2020-01-16 14:21:20 -05:00
Khosrow Moossavi
1dd45537d3 docs: Deprecate accepting files as commands param (#163)
BREAKING CHANGE: - With Terraform 0.12 ability to generate
output from file has been deprecated in favor of from folder
which contains one or more `.tf` files.
2020-01-15 18:57:33 -05:00
Khosrow Moossavi
61fc16c101 fix: Show all JSON properties, empty or null (#160)
* Show all JSON properties, empty or null

* fix lint issue
2020-01-14 14:54:15 -05:00
Khosrow Moossavi
d52122db3d Update list of authors v0.8.0-rc.2 2020-01-12 15:32:26 -05:00
Khosrow Moossavi
29e06673a0 Update Changelog 2020-01-12 15:29:49 -05:00
Khosrow Moossavi
d856c2c11c docs: Update Module internal documentaion
BREAKING CHANGE: - In the JSON format response, list of "Inputs"
has been renamed to `inputs`.
- In the JSON format response, list of "Outputs" has been renamed
to `outputs`.
2020-01-12 15:29:43 -05:00
Khosrow Moossavi
82e87aa264 fix: Do not escape strings inside code blocks (#155) 2020-01-12 15:20:12 -05:00
Khosrow Moossavi
ae21471875 Skip module header altogether if it's empty 2020-01-10 16:48:16 -05:00
Khosrow Moossavi
c456f54fda Update Changelog 2020-01-10 16:41:46 -05:00
Khosrow Moossavi
b3112d135a fix: Read leading module header from main.tf (#154)
Supported comment formats is:
- jsdoc, c or java-like multi-line comment `/** **/`

BREAKING CHANGE: - In the JSON format respone, module "Comment" has been renamed to module `header`.
2020-01-10 16:40:48 -05:00
Khosrow Moossavi
a6193849c4 fix: Read leading comment lines if description is not provided (#151)
Supported comment formats are:

- multi-lines start with `#` comment format
- multi-lines start with `//` comment format

Unsupported comments formats is:

- jsdoc, c or java-like multi-line comment `/** **/`
2020-01-07 21:49:56 -05:00
Khosrow Moossavi
2ee46daee8 Update Changelog 2020-01-06 20:55:43 -05:00
Khosrow Moossavi
2b64098529 Cleanup flags description wording 2020-01-06 20:55:38 -05:00
Khosrow Moossavi
0e50fa933d enhance: Rename flag to '--sort-by-required' (#150)
BREAKING CHANGE: - For simplicity we've decided to
deprecated the old `--sort-inputs-by-required` flag
to the simpler and more generic `--sort--by-required`.
The deprecated flags will get removed second release
from now.
2020-01-06 20:43:18 -05:00
Khosrow Moossavi
ff80da288f enhance: Mark '--with-aggregate-type-defaults' as deprecated (#148)
BREAKING CHANGE: - As of Terraform 0.12, the default value of
input variables are shown in full JSON format (if available)
and `--with-aggregate-type-defaults` is not needed anymore.
The flag is marked as soft deprecated and will get removed in
the second release from now.
2020-01-06 19:55:23 -05:00
Khosrow Moossavi
453c7da2d4 feat: Add '--no-escape' flag to 'json' command (#147) 2020-01-06 16:51:45 -05:00
Khosrow Moossavi
3e361f2bff Update Changelog v0.8.0-rc.1 2020-01-05 14:54:27 -05:00
Khosrow Moossavi
61554b9763 feat: Add flags to not show different sections (#144) 2020-01-05 14:50:25 -05:00
Khosrow Moossavi
96565f8bcc feat: Add '--no-color' flag to 'pretty' command (#143) 2020-01-04 16:18:12 -05:00
Khosrow Moossavi
c43932906e Refactor tests for better execution (#142)
* Refactor tests for better execution

* fix typo
2020-01-03 20:44:37 -05:00
Khosrow Moossavi
da5b5a1530 Update Changelog 2020-01-03 18:36:14 -05:00
Khosrow Moossavi
eee2f88443 Show breaking change section in 'unreleased' section 2020-01-03 18:36:11 -05:00
Khosrow Moossavi
ce32bf10a9 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
2020-01-03 18:33:08 -05:00
Khosrow Moossavi
80978e92f0 fix: Reimplement '--no-sort' to be compatible with Terraform 0.12 configuration (#141) 2020-01-02 21:16:00 -05:00
Khosrow Moossavi
8fe71fde97 Update Changelog 2019-12-20 21:11:16 -05:00
Khosrow Moossavi
ea1f442647 refactor: Move doc.Doc to tfconf.Module (#136) 2019-12-20 21:10:28 -05:00
Khosrow Moossavi
fa8a756962 enhance: Bump homebrew formula version on release (#135)
* Bump homebrew formula version on release

* Add readme to homebrew folder for more information
2019-12-20 17:00:42 -05:00
chenrui
2e6493c8bb feat: Bump golang to latest v1.13 (#133) 2019-12-20 16:35:11 -05:00
Thomas Alton
b8da8c5020 feat: Support Terraform 0.12.x configuration (#113)
* Support 0.12 configuration

* Move code out of GOPATH for CircleCI

* cleanup

* Rename 'variables' back to 'input' just for now

* Normalizing 'print.s.Settings' usage

* Normalize settings continued

* Remove '--providers' functionality for now

* Adjust 'commands' based on moarta's changes

* Adjust 'pkg/doc' based on moarta's changes

* Adjust 'pkg/print/json' based on moarta's changes

* Fix json tests

* don't trim whitespaces from .tf files

* Adjust 'pkg/print/pretty' based on moarta's changes

* Fix pretty tests

* don't trim whitespaces from .golden files

* Show 'n/a' for empty description for 'pretty'

* Show 'any' if type of input variable is missing

* Adjust 'pkg/print/markdown/document' based on moarta's changes

* Fix document tests

* move back vendor files

* Adjust 'pkg/print/markdown/table' based on moarta's changes

* fix lint issue

* Fix table tests

* figure out input type based on default value if tpye not explicitly defined

* don't escape ( ) [ ] { }, as they don't cause any issue

Authored-by: Thomas Alton <thomas.alton@gmail.com>
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
2019-12-20 15:07:29 -05:00
Khosrow Moossavi
5003a0afb7 Update Changelog 2019-12-13 17:01:21 -05:00
Khosrow Moossavi
1b7eaebeb7 Add 'enhance' to the list of changelog sections 2019-12-13 17:01:13 -05:00
Khosrow Moossavi
c11ab16902 enhance: Enable new go linters and fix the existing issues (#132)
* Enable new linters

* error strings should not be capitalized

* comment on exported function

* don't use underscores in Go names

* Ignore 'goconst' linter
2019-12-13 17:00:14 -05:00
Khosrow Moossavi
dc2d27a424 Update Changelog 2019-12-13 16:36:43 -05:00
Khosrow Moossavi
89dc73957f Update badges in README 2019-12-13 16:36:39 -05:00
Khosrow Moossavi
71ee0c9c06 Update list of authors 2019-12-13 16:36:15 -05:00
Khosrow Moossavi
a30764cc1e Bump version to v0.8.0-alpha 2019-12-12 16:34:50 -05:00
Khosrow Moossavi
0355e28ea2 Update Changelog v0.7.0 2019-12-12 16:34:44 -05:00
Khosrow Moossavi
e8655acc60 Release version v0.7.0 2019-12-12 16:34:41 -05:00
Khosrow Moossavi
088d71ba1c Use Github Actions instead of Circle CI (#124)
* Use Github Actions instead of CircleCI

* Add prerelease and release workflows

* Fix merge conflict

* Add release-note script

* Remove extra flags from build-all target on release workflows

* Upgrade golang-ci to v1.18.0
2019-12-12 16:22:53 -05:00
Khosrow Moossavi
d03bfc94aa Enhance release scripts 2019-12-12 16:05:36 -05:00