load_config

Function load_config 

Source
pub fn load_config(
    path: Option<&Path>,
) -> Result<Option<CliTestConfig>, CliTestError>
Expand description

Load configuration from file or auto-detect

§Search Order

  1. Explicit path (if provided)
  2. Current directory
  3. 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();