250bcb9751
This change adds a --json flag to the preview command, enabling basic JSON serialization of preview plans. This effectively flattens the engine event stream into a preview structure that contains a list of steps, diagnostics, and summary information. Each step contains the deep serialization of resource state, in addition to metadata about the step, such as what kind of operation it entails. This is a partial implementation of pulumi/pulumi#2390. In particular, we only support --json on the `preview` command itself, and not `up`, meaning that it isn't possible to serialize the result of an actual deployment yet (thereby limiting what you can do with outputs, etc). |
||
---|---|---|
.. | ||
destroy.go | ||
diff.go | ||
engine.go | ||
errors.go | ||
events.go | ||
eventsink.go | ||
lifecycle_test.go | ||
plan.go | ||
plugins.go | ||
plugins_test.go | ||
project.go | ||
refresh.go | ||
snapshot.go | ||
update.go |