WithEnv defines a key=value set of variables used for compose file interpolation
(env []string)
| 191 | |
| 192 | // WithEnv defines a key=value set of variables used for compose file interpolation |
| 193 | func WithEnv(env []string) ProjectOptionsFn { |
| 194 | return func(o *ProjectOptions) error { |
| 195 | for k, v := range utils.GetAsEqualsMap(env) { |
| 196 | o.Environment[k] = v |
| 197 | } |
| 198 | return nil |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | // WithDiscardEnvFile sets discards the `env_file` section after resolving to |
| 203 | // the `environment` section |
searching dependent graphs…