pulumi/cmd
Matt Ellis bb1fa36a47
Enable ANSI colorization in Windows terminal (#2269)
Before the windows console will understand ANSI colorization codes the
terminal must be put in a special mode by passing
ENABLE_VIRTUAL_TERMINAL_PROCESSING to SetConsoleMode. This was
happening as a side effect of term.StdStreams() from a docker package,
which we did before displaying the update data. However, any
colorization done before that call would just show the raw ANSI escape
codes.

Call this helper much earlier (i.e. as soon as the CLI starts up) so
any messages that we print will have the correct colorization applied
to them.

Fixes #2214
2018-12-04 16:58:32 -08:00
..
cancel.go Remove `pulumi archive` and archive uploading code 2018-10-26 18:03:58 -07:00
config.go Provide an actual 'table' printing routine so that we can appropriate choose columns widths dynamically. (#2266) 2018-12-02 00:22:07 -08:00
config_test.go Tidy up some data structures (#2135) 2018-11-01 08:28:11 -07:00
destroy.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
errors.go Revert "Plumb `LogRequest.IsStatus` through the logging subsystem" 2018-08-31 15:56:53 -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
login.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
logout.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
logs.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
logs_test.go Add license headers 2018-05-22 15:02:47 -07:00
new.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
plugin.go Implement status sinks 2018-08-31 15:56:53 -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 Provide an actual 'table' printing routine so that we can appropriate choose columns widths dynamically. (#2266) 2018-12-02 00:22:07 -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 --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
pulumi.go Enable ANSI colorization in Windows terminal (#2269) 2018-12-04 16:58:32 -08:00
refresh.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
stack.go Provide an actual 'table' printing routine so that we can appropriate choose columns widths dynamically. (#2266) 2018-12-02 00:22:07 -08: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 Remove references to Pulumi private clouds (#2095) 2018-10-24 13:50:35 -07:00
stack_ls.go Provide an actual 'table' printing routine so that we can appropriate choose columns widths dynamically. (#2266) 2018-12-02 00:22:07 -08:00
stack_output.go Don't error in `pulumi stack output` when there is no root resource 2018-10-25 15:00:38 -07:00
stack_output_test.go Add license headers 2018-05-22 15:02:47 -07:00
stack_rm.go Add `--preserve-config` to `pulumi stack rm` 2018-11-09 14:33:18 -08:00
stack_select.go Remove `pulumi archive` and archive uploading code 2018-10-26 18:03:58 -07:00
state.go Add new 'pulumi state' command for editing state (#2024) 2018-10-15 09:52:55 -07:00
state_delete.go Add new 'pulumi state' command for editing state (#2024) 2018-10-15 09:52:55 -07:00
state_unprotect.go Add new 'pulumi state' command for editing state (#2024) 2018-10-15 09:52:55 -07:00
up.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08:00
util.go Add a --config-file option for stack ops (#2258) 2018-11-30 15:11:05 -08: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 Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00