eggsearch 0.3.1

Lightweight MCP metasearch server for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! CLI configuration loader.

use std::path::Path;

use eggsearch::core::config::AppConfig;

pub fn load(path: Option<&Path>) -> anyhow::Result<AppConfig> {
    let path = match path {
        Some(p) => p.to_path_buf(),
        None => eggsearch::core::config::default_config_path(),
    };
    let cfg = AppConfig::load(&path)?;
    Ok(cfg)
}