mirror of https://github.com/pulumi/pulumi.git
59e3833490
Currently, the Options struct has a field for color, but there is not functions exposed to set this field in go. This change adds the ability to set the color setting for output. optdestroy, optpreview, optrefresh, and optup all have a new function to set the color setting. To use the new color setting, you can set the color field in the Options struct like the following: ```go _, err = s.Up(ctx, stdoutStreamer, optup.Color("always")) if err != nil { fmt.Printf("Failed to update stack: %v\n\n", err) os.Exit(1) } ``` Fixes https://github.com/pulumi/pulumi/issues/18183 |
||
---|---|---|
.. | ||
optdestroy.go |