Skip to main content

parse_env_example_structured

Function parse_env_example_structured 

Source
pub fn parse_env_example_structured(contents: &str) -> Vec<EnvLine>
Expand description

Parse .env.example preserving key order and blank-line separators.

Blank lines in the source become a Blank variant so the resulting envs: block in .do/app.yaml keeps the human grouping. Comment lines become Comment (consumers may drop them). Keys are trimmed.