Skip to main content

split_env_entry

Function split_env_entry 

Source
pub fn split_env_entry(entry: &str) -> Result<(&str, &str), String>
Expand description

Split a KEY=VAL env entry into (key, value).

Returns the original entry as the error message when the line is missing = or has an empty key. Used by stage code that needs to apply env entries to a child process (sign, sbom, notarize, publishers).