Skip to main content

parse_key_value_file

Function parse_key_value_file 

Source
pub fn parse_key_value_file(content: &str) -> HashMap<String, String>
Expand description

Parse a key-value file (like /etc/os-release) into a map.

Handles quoted and unquoted values, comments, and blank lines. This is a public helper for testing with mock files.