mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-26 03:11:06 +01:00
Use sed instead of tail for terraform-docs command (#211)
This commit is contained in:
committed by
Max Williams
parent
9d6740e116
commit
dfec7b1003
@@ -70,7 +70,7 @@ Documentation should be modified within `main.tf` and generated using [terraform
|
|||||||
Install it with `go get github.com/segmentio/terraform-docs` or `brew install terraform-docs` and then use it to generate the `README.md` file:
|
Install it with `go get github.com/segmentio/terraform-docs` or `brew install terraform-docs` and then use it to generate the `README.md` file:
|
||||||
|
|
||||||
```
|
```
|
||||||
terraform-docs --with-aggregate-type-defaults md ./ | cat -s | tail -r | tail -n +2 | tail -r > README.md
|
terraform-docs --with-aggregate-type-defaults md ./ | sed -e '$ d' -e 'N;/^\n$/D;P;D' > README.md
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
2
main.tf
2
main.tf
@@ -71,7 +71,7 @@
|
|||||||
* Install it with `go get github.com/segmentio/terraform-docs` or `brew install terraform-docs` and then use it to generate the `README.md` file:
|
* Install it with `go get github.com/segmentio/terraform-docs` or `brew install terraform-docs` and then use it to generate the `README.md` file:
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* terraform-docs --with-aggregate-type-defaults md ./ | cat -s | tail -r | tail -n +2 | tail -r > README.md
|
* terraform-docs --with-aggregate-type-defaults md ./ | sed -e '$ d' -e 'N;/^\n$/D;P;D' > README.md
|
||||||
* ```
|
* ```
|
||||||
|
|
||||||
* ## Contributing
|
* ## Contributing
|
||||||
|
|||||||
Reference in New Issue
Block a user