Closed ByJacob closed 3 years ago
By default, only app/stacks
are formatted by terraspace fmt
. Can format modules also with a flag:
terraspace fmt -t module
Terraspace Docs: terraspace fmt
Can also get help from the CLI
terraspace fmt -h
Haven't seen it before. My mistake :( Why isn't all
the default?
I checked this command and all
is not working. I using prepared sample code.
Workspace/GitHub/terraspace-bug-issues-116/sample$ terraspace fmt -t all
Formating terraform files
Workspace/GitHub/terraspace-bug-issues-116/sample$ terraspace fmt -t module
Formating terraform files
app/modules/mod1
main.tf
Workspace/GitHub/terraspace-bug-issues-116/sample$ terraspace fmt -t stack
Formating terraform files
app/stacks/test1
main.tf
Sure. There was a bug in with the -t all
option. It was fixed in #117 as reference above ⬆️ Thanks!
Checklist
My Environment
Expected Behaviour
Code in modules are formated
Current Behavior
Code in modules are don't formated
Step-by-step reproduction instructions
terraspace fmt
Code Sample
https://github.com/ByJacob/terraspace-bug-issues-116
Solution Suggestion