MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / EnvLookup

Interface EnvLookup

atomic-cli/src/commands/update.rs:128–130  ·  view source on GitHub ↗

Environment lookup, injected so tests don't have to mutate the real process environment.

Source from the content-addressed store, hash-verified

126/// Environment lookup, injected so tests don't have to mutate the real
127/// process environment.
128pub trait EnvLookup {
129 fn var(&self, key: &str) -> Option<String>;
130}
131
132/// Production implementation backed by `std::env`.
133pub struct StdEnv;

Callers

nothing calls this directly

Implementers 1

update.rsatomic-cli/src/commands/update.rs

Calls

no outgoing calls

Tested by

no test coverage detected