Paul Hinze
c7f5450a96
command: Add `terraform untaint`
...
- [x] Docs
- [x] Command Unit Tests
- [x] State Unit Tests
Closes #4820
2016-03-11 12:38:57 -06:00
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
Soren Mathiasen
db69a2959b
Added verify command
2016-02-08 12:48:14 +01:00
Mitchell Hashimoto
cdde9149ff
command/push: start it
2015-03-24 13:30:21 -07:00
Mitchell Hashimoto
01cd761023
command: move remote configuration stuff
2015-03-04 16:17:30 -08:00
Mitchell Hashimoto
b06a88d1ab
main: add the taint command
2015-02-26 10:29:51 -08:00
Mitchell Hashimoto
579f102f37
command: start migrating to new state package
2015-02-23 15:13:54 -08:00
Armon Dadgar
b3871c0c5a
command/remote: Adding skeleton
2014-12-10 13:27:08 -08:00
Armon Dadgar
38002904f4
command/push: Adding the push command
2014-12-10 13:27:08 -08:00
Armon Dadgar
34df217514
command/pull: Adding the pull command
2014-12-10 13:27:07 -08:00
Mitchell Hashimoto
70191d22a6
Add checkpoint
2014-10-13 14:05:43 -07:00
Mitchell Hashimoto
f302e7d1bb
main: add Destroy
2014-09-30 21:51:45 -07:00
Mitchell Hashimoto
fe4f53eb5b
enable init command
2014-09-27 12:31:38 -07:00
Mitchell Hashimoto
ed538a9594
command: Get command, not functional yet. Converted to use modules.
2014-09-22 10:56:50 -07:00
Mitchell Hashimoto
4e17aaf927
Always enable colors for now
2014-07-28 08:56:43 -07:00
Mitchell Hashimoto
17d085b13a
Always enable color for now
2014-07-26 14:07:47 -07:00
Mitchell Hashimoto
c3229aaef1
Always enable color on Windows since tty check doesn't work well
2014-07-17 09:50:58 -07:00
Mitchell Hashimoto
8dc842aa8e
Don't color output if stdout is not a tty
2014-07-17 09:37:36 -07:00
Mitchell Hashimoto
dde0f0f8df
command/version: use Meta
2014-07-13 10:42:18 -07:00
Mitchell Hashimoto
2caff709d6
comand/output
2014-07-13 10:25:42 -07:00
Mitchell Hashimoto
77bfa5657e
Fix compilation, use the new command.Meta object
2014-07-12 20:38:56 -07:00
Mitchell Hashimoto
dbc1c63d79
command/show
2014-07-12 19:47:31 -07:00
Mitchell Hashimoto
0e88867052
Compile
2014-07-03 12:01:20 -07:00
Mitchell Hashimoto
5aa6ada589
command/apply: Ctrl-C works
2014-07-02 17:01:02 -07:00
Mitchell Hashimoto
93fbb9ea8f
command/graph
2014-07-01 10:02:13 -07:00
Mitchell Hashimoto
1819b6fb34
command/refresh
2014-06-27 11:09:01 -07:00
Mitchell Hashimoto
01319e1dc9
Ui hook
2014-06-26 17:05:21 -07:00
Mitchell Hashimoto
bff4b8a58c
command: plan
2014-06-20 11:47:02 -07:00
Mitchell Hashimoto
8aa99687c3
command/apply: basic implementation
2014-06-18 16:42:13 -07:00
Mitchell Hashimoto
f9e830705d
Prefixed IO to make sure stdout/stderr match up
2014-06-10 10:28:47 -07:00
Mitchell Hashimoto
6c6bc0ae3e
commands/diff: starting up, got it loading a Terraform
2014-06-09 11:53:41 -07:00
Mitchell Hashimoto
046e80361b
commands: start apply
2014-05-24 12:27:58 -07:00
Mitchell Hashimoto
a4a4e3784d
Implement CLI, version command
2014-05-24 12:04:43 -07:00