()
| 36 | } |
| 37 | |
| 38 | func 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 | |
| 50 | func (s *State) Load(ctx context.Context, client *desktop.Client) error { |
| 51 | if !s.active { |
nothing calls this directly
no outgoing calls
no test coverage detected