terraform/website/source/layouts
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
..
svg capital C in by hashicorp lockup 2015-12-19 21:33:48 -08:00
_footer.erb Add structured data 2016-01-24 13:32:35 -05:00
_header.erb Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
_meta.erb Push javascript to the bottom, read description 2014-10-21 23:20:52 -04:00
_sidebar.erb fix incorrect link 2015-11-06 15:45:02 -08:00
atlas.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
aws.erb website: Fix missing sidebar_current 2016-03-06 23:51:25 +09:00
azure.erb Added SQL Database Server Firewall Rule resource. 2015-06-29 21:36:02 +03:00
azurerm.erb provider/azurerm: Add documentation for the `azurerm_search_service` 2016-02-19 00:57:51 +00:00
chef.erb fix typo in chef docs sidebar 2016-01-08 15:28:51 -05:00
cloudflare.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
cloudstack.erb Added LoadBalancer support for Cloudstack Provider 2015-08-21 10:37:08 +02:00
consul.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
datadog.erb Add Datadog doco. 2016-02-22 15:04:29 -05:00
digitalocean.erb Adding the work to assign a Floating IP to a Droplet 2015-11-20 19:12:31 +02:00
dme.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
dnsimple.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
docker.erb provider/docker: Add missing sidebar doc link 2016-01-15 21:36:17 +00:00
docs.erb command/fmt: Add new fmt command 2016-03-07 15:07:04 +00:00
downloads.erb website: fixing downloads page 2014-07-27 16:11:21 -04:00
dyn.erb Dyn provider docs 2015-07-31 08:39:52 -04:00
google.erb add missing sidebar link to new google_compute_subnetwork resource 2016-02-25 16:56:01 +13:00
heroku.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
inner.erb update footer to be sticky 2014-07-28 00:08:17 -07:00
intro.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
layout.erb in progress header redesign 2015-11-06 12:35:24 -08:00
mailgun.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
mysql.erb mysql provider and mysql_database resource. 2015-12-16 17:59:35 -08:00
openstack.erb provider/openstack: Load Balancing Member Resource 2015-12-17 07:29:58 +00:00
packet.erb Add Packet layout. 2015-10-09 17:41:55 -04:00
postgresql.erb postgresql provider with "database" and "role" resources 2015-12-03 23:44:20 -08:00
powerdns.erb provider/powerdns: Add site documentation 2016-01-28 10:10:46 -05:00
remotestate.erb docs: Create new section for remote state backends 2016-01-18 08:08:19 +00:00
rundeck.erb Rundeck provider documentation for the website. 2015-09-03 10:01:32 -07:00
statuscake.erb Adding some documentation for the StatusCake provider 2015-11-30 10:44:21 +00:00
template.erb docs: cloudinit_config - correct syntax and add sidebar link 2016-01-08 13:34:16 -06:00
terraform.erb Add Terraform/Remote State documentation to provider/resource section. 2015-12-27 19:04:27 +01:00
tls.erb docs: add locally_signed_cert to tls sidenav 2016-01-27 08:13:59 -05:00
vcd.erb Minor doc updates 2015-11-11 07:43:36 +00:00
vsphere.erb vSphere occurrence in layout 2015-11-02 18:25:05 -08:00