(cwd: Option<&Path>, user_dir: Option<PathBuf>)
| 1164 | /// for cross-crate reuse by the gateway. |
| 1165 | #[doc(hidden)] |
| 1166 | pub fn default_plugin_config_paths(cwd: Option<&Path>, user_dir: Option<PathBuf>) -> Vec<PathBuf> { |
| 1167 | let mut paths = vec![PathBuf::from("/etc/nemo-relay/plugins.toml")]; |
| 1168 | if let Some(cwd) = cwd |
| 1169 | && let Some(project) = nearest_project_plugin_config(cwd) |
| 1170 | { |
| 1171 | paths.push(project); |
| 1172 | } |
| 1173 | if let Some(dir) = user_dir { |
| 1174 | paths.push(dir.join("plugins.toml")); |
| 1175 | } |
| 1176 | paths |
| 1177 | } |
| 1178 | |
| 1179 | /// Walks upward from `start` for the nearest `.nemo-relay/plugins.toml`. `pub` |
| 1180 | /// only for cross-crate reuse by the gateway. |
no test coverage detected