(prefer bool)
| 71 | } |
| 72 | |
| 73 | func WithPreferDevelopmentBackends(prefer bool) SystemStateOptions { |
| 74 | return func(s *SystemState) { |
| 75 | s.PreferDevelopmentBackends = prefer |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | func GetSystemState(opts ...SystemStateOptions) (*SystemState, error) { |
| 80 | state := &SystemState{} |