ark-cli 0.1.1

Architectural boundary enforcer for .NET solutions
1
2
3
4
5
6
7
8
use super::model::ArchitectureConfig;
use miette::{IntoDiagnostic, Result};
use std::path::Path;

pub fn load_config(config_path: &Path) -> Result<ArchitectureConfig> {
    let text = std::fs::read_to_string(config_path).into_diagnostic()?;
    toml::from_str(&text).into_diagnostic()
}