terraform/website/source/docs
Dan Carley e9128769b5 command/fmt: Accept input from STDIN
So that you can do automatic formatting from an editor. You probably want to
disable the `-write` and `-list` options so that you just get the
re-formatted content, e.g.

    cat main.tf | terraform fmt -write=false -list=false -

I've added a non-exported field called `input` so that we can override this
for the tests. If not specified, like in `commands.go`, then it will default
to `os.Stdin` which works on the command line.
2016-03-07 15:07:15 +00:00
..
commands command/fmt: Accept input from STDIN 2016-03-07 15:07:15 +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