parse

abstract fun parse(content: String, filePath: String, environmentName: String): ParseResult<EnvironmentConfig>

Parses the content of an environment file into an EnvironmentConfig.

Return

A ParseResult containing either the parsed config or error details

Parameters

content

The raw file content to parse

filePath

The file path for error reporting

environmentName

The environment name to assign to the resulting config