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
@@ -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) {

Check warning on line 17 in cli/internal/util/run_opts.go

View workflow job for this annotation

GitHub Actions / Go linting

exported: exported method EnvMode.MarshalText should have comment or be unexported (revive)
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.