terraform/website/source/docs
Dan Carley cc41c7cfa0 command/fmt: Add new fmt command
This uses the `fmtcmd` package which has recently been merged into HCL. Per
the usage text, this rewrites Terraform config files to their canonical
formatting and style.

Some notes about the implementation for this initial commit:

- all of the fmtcmd options are exposed as CLI flags
- it operates on all files that have a `.tf` suffix
- it currently only operates on the working directory and doesn't accept a
  directory argument, but I'll extend this in subsequent commits
- output is proxied through `cli.UiWriter` so that we write in the same way
  as other commands and we can capture the output during tests
- the test uses a very simple fixture just to ensure that it is working
  correctly end-to-end; the fmtcmd package has more exhaustive tests
- we have to write the fixture to a file in a temporary directory because it
  will be modified and for this reason it was easier to define the fixture
  contents as a raw string
2016-03-07 15:07:04 +00:00
..
commands command/fmt: Add new fmt command 2016-03-07 15:07:04 +00:00
configuration docs(variables): describe order of evaluation with files 2016-03-01 17:08:57 -06:00
internals Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
modules command: Change module-depth default to -1 2016-01-20 13:58:02 -06:00
plugins Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
providers Added disk_size_gb documentation to resource "google_compute_instance_template" 2016-03-06 21:44:55 -05:00
provisioners Update null_resource.html.markdown 2016-02-25 09:13:54 -06:00
state docs/remote-state/s3: Fix typo 2016-01-25 22:16:25 +00:00
index.html.markdown Add meta descriptions to all pages 2014-10-21 23:21:56 -04:00