mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-15 08:14:12 +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:
|
||||
|
||||
```
|
||||
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
|
||||
|
||||
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:
|
||||
*
|
||||
* ```
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user