pulumi/cmd
Matt Ellis 194ed8e2ad Adjust stack output formating in the CLI
Previously, we would just use normal go formatting when displaying
output values. This was fine for simple values like strings and ints,
but for arrays or objects, you'd end up with values that looked a
little stange.

We now run the objects through json.Marshal first, to get nicer string
values for more complex objects. However, when the top level value is
a single string, we elide the quotes. This is not true JSON, but it
displays much nicer.

When we add something like `--format=json` (see pulumi#496) it will
provide a way to treat output unfiormly as JSON.

Fixes #736
2018-02-16 12:25:25 -08:00
..
config.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
config_test.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
debug_cmds.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
destroy.go Exit when an error when confirmation is declined 2018-02-16 00:32:24 -08:00
history.go Add "pulumi history" command (#826) 2018-01-24 18:22:41 -08:00
init.go Argument validation for CLI commands 2017-11-29 16:10:53 -08:00
login.go Add a logout --all command (#673) 2017-12-08 12:14:14 -08:00
logout.go Make cloud authentication more intuitive (#738) 2017-12-16 07:49:41 -08:00
logs.go Default pulumi logs to 1 hour of logs (#780) 2018-01-05 12:10:49 -08:00
logs_test.go Address PR feedback on #600 (#611) 2017-11-28 12:54:36 -08:00
preview.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
pulumi.go Exit when an error when confirmation is declined 2018-02-16 00:32:24 -08:00
stack.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_export.go Remove incorrect punctuation and newline in help text 2018-01-27 09:40:05 -08:00
stack_import.go Remove incorrect punctuation and newline in help text 2018-01-27 09:40:05 -08:00
stack_init.go Provide a better error message for stack init when not logged in 2018-01-19 09:45:54 -08:00
stack_ls.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
stack_output.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_output_test.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_rm.go Exit when an error when confirmation is declined 2018-02-16 00:32:24 -08:00
stack_select.go Replace push with update in help text 2018-02-13 17:58:33 -08:00
update.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
util.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
version.go Add a manifest to checkpoint files (#630) 2017-12-01 13:50:32 -08:00