moella::config

Function read_and_resolve

source
pub async fn read_and_resolve(
    file: impl AsRef<str>,
    custom_extensions: &CustomExtensions,
    opts: &CliOptions<'_>,
) -> Result<RunConfig, String>
Expand description

Read config at path and resolve it’s contents and it’s imports (dependency configs). Returns a kvarn::RunConfig you can kvarn::RunConfig::execute.