MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / set_env_key

Method set_env_key

env_manager.py:64–69  ·  view source on GitHub ↗

Set a single key in the .env file (preserves other keys).

(self, key, value)

Source from the content-addressed store, hash-verified

62 return env.get(key)
63
64 def set_env_key(self, key, value):
65 """Set a single key in the .env file (preserves other keys)."""
66 env = self._read_env_dict()
67 env[key] = value
68 self._write_env_dict(env)
69 os.environ[key] = value
70
71 def delete_env_key(self, key):
72 """Remove a single key from the .env file."""

Callers 1

save_pushover_keysFunction · 0.95

Calls 2

_read_env_dictMethod · 0.95
_write_env_dictMethod · 0.95

Tested by

no test coverage detected