MCPcopy Create free account
hub / github.com/docker/compose / NewState

Function NewState

internal/experimental/experimental.go:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func NewState() *State {
39 // experimental features have individual controls, but users can opt out
40 // of ALL experiments easily if desired
41 experimentsActive := true
42 if v := os.Getenv(envComposeExperimentalGlobal); v != "" {
43 experimentsActive, _ = strconv.ParseBool(v)
44 }
45 return &State{
46 active: experimentsActive,
47 }
48}
49
50func (s *State) Load(ctx context.Context, client *desktop.Client) error {
51 if !s.active {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected