Skip to content

Commit

Permalink
Marshal to lowercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhammond committed Apr 12, 2023
1 parent 75675d4 commit 0a3f14c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/internal/util/run_opts.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package util

import "strings"

// EnvMode specifies if we will be using strict env vars
type EnvMode string

Expand All @@ -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
Expand Down

0 comments on commit 0a3f14c

Please sign in to comment.