terraform/website/source
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
..
assets Add Datadog doco. 2016-02-22 15:04:29 -05:00
docs command/fmt: Add new fmt command 2016-03-07 15:07:04 +00:00
intro Merge pull request #5466 from xbs13/patch-2 2016-03-06 13:11:05 -06:00
layouts command/fmt: Add new fmt command 2016-03-07 15:07:04 +00:00
.gitignore website: initial commit 2014-07-16 17:51:48 -04:00
404.html.erb Update 404 page 2015-09-19 17:42:33 +01:00
community.html.erb Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
downloads.html.erb Update changelog link with link to latest release 2016-02-11 13:28:02 -06:00
index.html.erb provider/aws: Update docs with t1 instance for accounts with EC2 Classic 2015-12-21 10:00:34 -06:00
robots.txt Add robots.txt 2014-10-21 23:20:26 -04:00
sitemap.xml.builder Add sitemap 2014-10-21 23:20:21 -04:00