WithOsEnv imports environment variables from OS
(o *ProjectOptions)
| 238 | |
| 239 | // WithOsEnv imports environment variables from OS |
| 240 | func WithOsEnv(o *ProjectOptions) error { |
| 241 | for k, v := range utils.GetAsEqualsMap(os.Environ()) { |
| 242 | if _, set := o.Environment[k]; set { |
| 243 | continue |
| 244 | } |
| 245 | o.Environment[k] = v |
| 246 | } |
| 247 | return nil |
| 248 | } |
| 249 | |
| 250 | // WithEnvFile sets an alternate env file. |
| 251 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…