Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraspace fmt command #94

Merged
merged 1 commit into from
Mar 22, 2021
Merged

terraspace fmt command #94

merged 1 commit into from
Mar 22, 2021

Conversation

tongueroo
Copy link
Contributor

This is a πŸ™‹β€β™‚οΈ feature or enhancement.
This is a 🧐 documentation change.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

Add terraspace fmt command. It'll format all the source tf files in the app folder. So both app/modules and app/stacks.

  • Will skip files that contain ERB.
  • Only format files that have pure terraform code

Context

https://community.boltops.com/t/terraform-fmt-borked-when-using-terraspace-templating/659

How to Test

Run

terraspace fmt

Check the tf files in app folder.

Version Changes

Patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant