envd
envd copied to clipboard
feat(CLI): fmt command to reformat your configuration in the standard style
Description
Support envd fmt
command to reformat the configuration in the standard style
Reference - terraform
Usage: terraform [global options] fmt [options] [TARGET]
Rewrites all Terraform configuration files to a canonical format. Both
configuration files (.tf) and variables files (.tfvars) are updated.
JSON files (.tf.json or .tfvars.json) are not modified.
If TARGET is not specified, the command uses the current working directory.
If TARGET is a file, the command only uses the specified file. If TARGET
is "-" then the command reads from STDIN.
The content must be in the Terraform language native syntax; JSON is not
supported.
Options:
-list=false Don't list files whose formatting differs
(always disabled if using STDIN)
-write=false Don't write to source files
(always disabled if using STDIN or -check)
-diff Display diffs of formatting changes
-check Check if the input is formatted. Exit status will be 0 if all
input is properly formatted and non-zero otherwise.
-no-color If specified, output won't contain any color.
-recursive Also process files in subdirectories. By default, only the
given directory (or current directory) is processed.
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
/assign @fengzixu
:) Glad to check this issue, so assign it to myself first
Thanks for your contribution! :tada: :+1:
Feel free to ask if there is any question.
Our discord channel is here https://discord.gg/KqswhpVgdU
Hi @fengzixu. It has been a while. Not sure if you're still working on this issue. Let us know if you need any help.
@kemingy Sorry for reply late. I am little busy on the work recently. I plan to check it this weekend. But if it's urgent staff, it's ok to unassign it from me
@kemingy Sorry for reply late. I am little busy on the work recently. I plan to check it this weekend. But if it's urgent staff, it's ok to unassign it from me
It's not urgent. Take your time.