terraform/vendor/github.com
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
..
Azure/azure-sdk-for-go Fix up deps 2016-02-22 10:21:33 -08:00
DreamItGetIT/statuscake Fix up deps 2016-02-22 10:21:33 -08:00
apparentlymart vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
armon vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
aws/aws-sdk-go vendor: Update github.com/aws/aws-sdk-go/service/apigateway 2016-03-06 09:29:24 +00:00
bgentry/speakeasy Fix up deps 2016-02-22 10:21:33 -08:00
cenkalti/backoff fix up some other badly saved deps. 2016-02-24 14:27:26 -08:00
coreos/etcd Fix up deps 2016-02-22 10:21:33 -08:00
cyberdelia/heroku-go vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
digitalocean/godo Fix up deps 2016-02-22 10:21:33 -08:00
dylanmei vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
fsouza/go-dockerclient Fix up deps 2016-02-22 10:21:33 -08:00
go-chef/chef Fix up deps 2016-02-22 10:21:33 -08:00
go-ini/ini vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
golang/protobuf Fix up deps 2016-02-22 10:21:33 -08:00
google/go-querystring vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
hashicorp command/fmt: Add new fmt command 2016-03-07 15:07:04 +00:00
hmrc/vmware-govcd Fix up deps 2016-02-22 10:21:33 -08:00
imdario/mergo vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
jen20/riviera provider/azurerm: Add documentation for the `azurerm_search_service` 2016-02-19 00:57:51 +00:00
jmespath/go-jmespath Fix up deps 2016-02-22 10:21:33 -08:00
kardianos/osext vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
lib/pq Fix up deps 2016-02-22 10:21:33 -08:00
lusis/go-artifactory Fix up deps 2016-02-22 10:21:33 -08:00
masterzen vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
mattn/go-isatty Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
mitchellh Fix up deps 2016-02-22 10:21:33 -08:00
nesv/go-dynect vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
nu7hatch/gouuid vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
packer-community/winrmcp vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
packethost/packngo Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
pborman/uuid vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
pearkes Fix up deps 2016-02-22 10:21:33 -08:00
rackspace/gophercloud vendor: Update dependency gophercloud to latest 2016-03-01 03:30:42 +00:00
satori/go.uuid vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
soniah/dnsmadeeasy Fix up deps 2016-02-22 10:21:33 -08:00
sthulb/mime/multipart vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
tent/http-link-go vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
vmware/govmomi Fix up deps 2016-02-22 10:21:33 -08:00
xanzy vendor: Recapture deps w/ latest godep 2016-02-10 10:45:16 -06:00
ziutek/mymysql Fix up deps 2016-02-22 10:21:33 -08:00
zorkian/go-datadog-api fix up some other badly saved deps. 2016-02-24 14:27:26 -08:00