Skip to main content

parse_dotenv_from_dir

Function parse_dotenv_from_dir 

Source
pub fn parse_dotenv_from_dir(dir: &Path) -> Vec<(String, String)>
Expand description

从指定目录解析 .env,返回 key-value 对(不修改进程环境)。 用于子进程等需要将 .env 作为 env 传入的场景。