Resolves the default `plugins.toml` layering into one JSON document, or an empty object when no plugin file exists.
()
| 1096 | /// Resolves the default `plugins.toml` layering into one JSON document, or an |
| 1097 | /// empty object when no plugin file exists. |
| 1098 | fn resolve_default_file_plugin_config() -> Result<Json> { |
| 1099 | let paths = |
| 1100 | default_plugin_config_paths(std::env::current_dir().ok().as_deref(), user_config_dir()); |
| 1101 | Ok(load_plugin_config_files(paths)? |
| 1102 | .map(|(value, _sources)| value) |
| 1103 | .unwrap_or_else(|| Json::Object(Map::new()))) |
| 1104 | } |
| 1105 | |
| 1106 | use std::path::{Path, PathBuf}; |
| 1107 |
no test coverage detected