Skip to main content

extract_env_keys

Function extract_env_keys 

Source
pub fn extract_env_keys(content: &str) -> Result<Vec<String>>
Expand description

Extracts CONTEXT7_API= keys from .env file content in memory.

Ignores comments (lines starting with #) and blank lines. Removes surrounding double and single quotes from values. Pure function — accepts &str, no I/O, facilitates unit testing.