pulumi/pkg/engine
Matt Ellis 104cbd44ff Mark steps as seen only during the Pre event
The `shouldShow` method always marked a step as seen, and having the
side effect there is a little confusing. Because we call shouldShow in
the StepPre, StepPost and Output handlers, its also hard to ensure an
invarant I think we want, which is that in the Post and Output
handlers, we've already seen the event.

So, let's move the marking out of `shouldShow` and into
`OnResourceStepPre` and then assert we've already seen it in
`OnResourceStepPre` and `OnResourceOutputs` handlers.

This means that shouldShow is now a pure function and makes it easier
to move the decision on if we should print information about a step
out of the engine and into the CLI.
2018-03-09 11:37:54 -08:00
..
deploy.go Mark steps as seen only during the Pre event 2018-03-09 11:37:54 -08:00
destroy.go Clean up colorization logic 2018-01-31 15:46:14 -08:00
engine.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
env.go Remove the Engine type entirely. 2018-01-08 14:20:51 -08:00
events.go Move summary printing out of the engine 2018-03-09 11:13:06 -08:00
eventsink.go Clean up colorization logic 2018-01-31 15:46:14 -08:00
plan.go Mark steps as seen only during the Pre event 2018-03-09 11:37:54 -08:00
preview.go Mark steps as seen only during the Pre event 2018-03-09 11:37:54 -08:00
project.go Do not use absolute paths for main/proj 2018-02-18 08:08:15 -08:00