pub fn load_config_from_path(
config_path: Option<&Path>,
) -> Result<(Config, Option<UnifiedConfig>, Vec<String>), ConfigLoadWithValidationError>Expand description
Load configuration from a specific path or the default location.
If config_path is provided, loads from that file.
Otherwise, loads from the default unified config location.
§Arguments
config_path- Optional path to a config file. If None, uses the default location.
§Returns
Returns a tuple of (Config, Option<UnifiedConfig>, Vec<String>) where the last element
contains any deprecation warnings to be displayed to the user.
§Panics
This function does not panic. Validation errors are returned to the caller.
§Errors
Returns error if the operation fails.