MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / load_env_var

Function load_env_var

crates/common/src/config/utils.rs:13–15  ·  view source on GitHub ↗
(env: &str)

Source from the content-addressed store, hash-verified

11};
12
13pub fn load_env_var(env: &str) -> Result<String> {
14 std::env::var(env).wrap_err(format!("{env} is not set"))
15}
16pub fn load_optional_env_var(env: &str) -> Option<String> {
17 std::env::var(env).ok()
18}

Callers 6

load_from_envMethod · 0.85
init_from_envMethod · 0.85
load_from_envMethod · 0.85
load_pbs_custom_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected