Load inline config content from OPENCODE_CONFIG_CONTENT env var. Per TS parity, this is applied after project config but before managed config.
(&mut self)
| 124 | /// Load inline config content from OPENCODE_CONFIG_CONTENT env var. |
| 125 | /// Per TS parity, this is applied after project config but before managed config. |
| 126 | pub fn load_from_env_content(&mut self) -> Result<()> { |
| 127 | if let Ok(config_content) = env::var("OPENCODE_CONFIG_CONTENT") { |
| 128 | self.load_from_str(&config_content)?; |
| 129 | } |
| 130 | |
| 131 | Ok(()) |
| 132 | } |
| 133 | |
| 134 | /// Loads all config sources synchronously (without remote wellknown). |
| 135 | /// Merge order (TS parity): |