pub fn load_config(
path: Option<&Path>,
) -> Result<Option<CliTestConfig>, CliTestError>Expand description
Load configuration from file or auto-detect
§Search Order
- Explicit path (if provided)
- Current directory
- No config (returns None)
§Examples
use cli_testing_specialist::config::load_config;
use std::path::Path;
// Auto-detect
let config = load_config(None).unwrap();
// Explicit path
let config = load_config(Some(Path::new("path/to/config.yml"))).unwrap();