EnvFile represents a collection of environment variables that can be manipulated
| 23 | |
| 24 | // EnvFile represents a collection of environment variables that can be manipulated |
| 25 | type EnvFile struct { |
| 26 | // Variables stored as key-value pairs, preserving order and allowing duplicates |
| 27 | Environ []string `json:"variables"` |
| 28 | Expand bool `json:"expand"` |
| 29 | // Context holds variables that are used only for ${...} expansion of the |
| 30 | // Environ values. They are not exposed via Variables/Lookup/AsFile. This is |
| 31 | // how Namespace preserves non-matching variables (e.g. a shared ROOT_DIR) |
| 32 | // that namespaced values still reference but that should not become defaults. |
| 33 | Context []string `json:"context,omitempty"` |
| 34 | } |
| 35 | |
| 36 | var ( |
| 37 | _ dagql.PersistedObject = (*EnvFile)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected