load

Function load 

Source
pub fn load(workspace_root: &str) -> Result<LandConfig, String>
Expand description

Loads the land-config.json file from the .vscode directory.

§Arguments

  • workspace_root - Path to the workspace root directory

§Returns

Result containing the parsed LandConfig or an error

§Example

use crate::Maintain::Source::Build::Rhai::ConfigLoader;
let config = ConfigLoader::load(".")?;
let debug_profile = config.profiles.get("debug");