James Bardin
39a5ddd381
Split Meta back out of StateMeta
...
Removing the call to StateMeta.Env, so that it doesn't need an embedded
Meta field. Embed Meta and StateMeta separately in all State commands.
2017-03-01 10:20:32 -05:00
James Bardin
b53704ed87
Thread the environment through all commands
...
Add Env and SetEnv methods to command.Meta to retrieve the current
environment name inside any command.
Make sure all calls to Backend.State contain an environment name, and
make the package compile against the update backend package.
2017-02-28 16:35:46 -05:00
Mitchell Hashimoto
6e1dc9c77d
command: extra RefreshState calls
2017-02-21 20:35:43 -08:00
Mitchell Hashimoto
ad7b063262
command: convert to use backends
2017-01-26 14:33:49 -08:00
James Bardin
43f860ddfd
Fix panic during "terraform show" with empty state
...
It's possible to have > 1 result from the StateFilter, and not have any
instances to show.
2016-10-26 17:18:36 -04:00
James Bardin
191d7c1007
Fix panic when showing empty state
...
Fixes a nil dereference when there's no state to print.
Fix some slice declaration to use the recommended style when allocations
don't matter.
2016-08-12 14:19:42 -04:00
Mitchell Hashimoto
f34ef1f92a
command: compilation works
...
This still isn't ready. But this gets tests passing and compilation
working
2016-05-10 17:03:58 -07:00
Mitchell Hashimoto
e133452663
command/state: pattern => address
2016-05-10 14:14:48 -04:00
Mitchell Hashimoto
5737c0a13b
website: update docs for state show
2016-05-10 14:14:48 -04:00
Mitchell Hashimoto
f6692e66ac
add command/state show
2016-05-10 14:14:47 -04:00