Skip to main content

load_config

Function load_config 

Source
pub fn load_config() -> Result<ProjectConfig, NeuxcfgError>
Expand description

Loads the complete project configuration from the persistent store.

§Errors

Returns NeuxcfgError::ProjectNotFound if the project has not been initialized. Call init first.

§Examples

use age_setup::config::{init, load_config};

init()?;
let config = load_config()?;
println!("Project path: {}", config.project.path);