diff --git a/cli/internal/util/run_opts.go b/cli/internal/util/run_opts.go index 7f3c09c4d0079..c6feb6301b095 100644 --- a/cli/internal/util/run_opts.go +++ b/cli/internal/util/run_opts.go @@ -1,5 +1,7 @@ package util +import "strings" + // EnvMode specifies if we will be using strict env vars type EnvMode string @@ -12,6 +14,10 @@ const ( Strict EnvMode = "Strict" ) +func (s EnvMode) MarshalText() (text []byte, err error) { + return []byte(strings.ToLower(string(s))), nil +} + // RunOpts holds the options that control the execution of a turbo run type RunOpts struct { // Force execution to be serially one-at-a-time