MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / load_config

Function load_config

load_config/src/lib.rs:64–72  ·  view source on GitHub ↗
(
    name: &str,
    default_toml: &str,
    leaf_config: Option<&str>,
    nested: bool,
)

Source from the content-addressed store, hash-verified

62}
63
64pub fn load_config(
65 name: &str,
66 default_toml: &str,
67 leaf_config: Option<&str>,
68 nested: bool,
69) -> Figment {
70 let etc_path = format!("/etc/{name}");
71 search_load_config(name, &[&etc_path, "."], default_toml, leaf_config, nested)
72}
73
74#[cfg(test)]
75mod tests {

Callers

nothing calls this directly

Calls 1

search_load_configFunction · 0.85

Tested by

no test coverage detected