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

Method clear

atomic-cli/src/commands/record/tests.rs:31–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30 impl AiEnvGuard {
31 fn clear() -> Self {
32 let original = AI_ENV_KEYS
33 .iter()
34 .map(|&key| (key, std::env::var_os(key)))
35 .collect();
36 for key in AI_ENV_KEYS {
37 std::env::remove_var(key);
38 }
39 Self { original }
40 }
41 }
42
43 impl Drop for AiEnvGuard {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected