pulumi/cmd
joeduffy 250bcb9751 Add a --json flag to the preview command
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).
2019-04-25 17:36:31 -07:00
..
cancel.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
config.go Doc edits to cmd (#2505) 2019-03-02 11:04:09 -08:00
config_test.go Tidy up some data structures (#2135) 2018-11-01 08:28:11 -07:00
destroy.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
errors.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
gen_completion.go Reworked gen-bash-completion into a more generic completion command (#1967) 2018-09-24 06:25:16 -07:00
gen_markdown.go Add license headers 2018-05-22 15:02:47 -07:00
history.go Add --json to pulumi history 2019-01-22 15:42:29 -08:00
login.go Add support for state in cloud object storage (S3, GCS, Azure) (#2455) 2019-04-24 20:55:39 -07:00
logout.go Add support for state in cloud object storage (S3, GCS, Azure) (#2455) 2019-04-24 20:55:39 -07:00
logs.go Add --json to pulumi config get and pulumi config 2019-01-22 10:39:37 -08:00
logs_test.go Add license headers 2018-05-22 15:02:47 -07:00
new.go Stop running up as part of pulumi new (#2539) 2019-03-11 12:32:40 -07:00
plugin.go Remove uses of plugins in the snapshot (#2662) 2019-04-23 09:53:44 -07:00
plugin_install.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
plugin_ls.go Add --json to pulumi plugin ls 2019-01-22 15:42:29 -08:00
plugin_rm.go Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00
preview.go Add a --json flag to the preview command 2019-04-25 17:36:31 -07:00
pulumi.go Hook up stderr when running brew command 2019-03-06 22:45:55 -08:00
refresh.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
stack.go Add pulumi stack rename 2019-03-19 11:04:33 -07:00
stack_export.go Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00
stack_graph.go Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00
stack_import.go Implement preview-then-update for local stacks 2018-09-05 07:33:18 -07:00
stack_init.go Provide a hint about stack name format when creating stacks 2019-02-26 10:09:06 -08:00
stack_ls.go Add --json to pulumi plugin ls 2019-01-22 15:42:29 -08:00
stack_output.go Add --json to pulumi config get and pulumi config 2019-01-22 10:39:37 -08:00
stack_output_test.go Add license headers 2018-05-22 15:02:47 -07:00
stack_rename.go Add pulumi stack rename 2019-03-19 11:04:33 -07:00
stack_rm.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
stack_select.go Remove pulumi archive and archive uploading code 2018-10-26 18:03:58 -07:00
stack_tag.go Add --json to pulumi config get and pulumi config 2019-01-22 10:39:37 -08:00
state.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
state_delete.go Add a note about quoting to state delete doc (#2641) 2019-04-11 16:10:28 -06:00
state_unprotect.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
up.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
util.go Add support for state in cloud object storage (S3, GCS, Azure) (#2455) 2019-04-24 20:55:39 -07:00
util_test.go Add gitlab metadata - Part 1 (#2090) 2018-10-23 14:53:52 -07:00
version.go Add license headers 2018-05-22 15:02:47 -07:00
whoami.go Display current logged in user 2019-02-01 11:27:49 -08:00