mirror of https://github.com/pulumi/pulumi.git
7e6bac5b48
Our display code sets up the terminal so it doesn't automatically do a CR for every new line (amongst other modifications). However the policy pack code just uses regular Println's for output, messing up the formatting. Fix this by manually adding the CR, improving this output. Example output before: ``` $ pulumi preview Previewing update (tgummerer-test/dev) View in Browser (Ctrl+O): https://app.pulumi.com/tgummerer-test/pulumi-test-go/dev/previews/af23b7b8-6dd4-4e4e-b635-47eab4270b19 Installing policy pack aws-iso27001-compliance-ready-policies-typescript 0.0.1... Loading policy packs... Finished installing policy pack Installing policy pack aws-python 0.0.1... Finished installing policy pack [...] ``` and after this change: ``` $ pulumi preview Previewing update (tgummerer-test/dev) View in Browser (Ctrl+O): https://app.pulumi.com/tgummerer-test/pulumi-test-go/dev/previews/b972324a-5859-49b0-b0f1-edbc547d786a Installing policy pack aws-typescript 0.0.1... Loading policy packs... Finished installing policy pack Installing policy pack aws-iso27001-compliance-ready-policies-typescript 0.0.1... Finished installing policy pack ``` There's an argument to be made that we shouldn't display the `Loading policy packs...` message at all when we're installing the policy packs, but that's probably a little more involved, so I'm tempted to just ship this improvement first, and then maybe do that in the future. Fixes #15183 |
||
---|---|---|
.. | ||
client | ||
testdata | ||
backend.go | ||
backend_test.go | ||
console.go | ||
console_test.go | ||
diffs.go | ||
diffs_post_1.20.go | ||
diffs_pre_1.20.go | ||
doc.go | ||
environments.go | ||
mock.go | ||
policypack.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
state.go | ||
token_source.go | ||
token_source_test.go |