capture

Function capture 

Source
pub async fn capture(
    shell_path: impl AsRef<Path>,
    args: &[String],
    directory: impl AsRef<Path>,
) -> Result<HashMap<String, String>>
Expand description

Capture all environment variables from the login shell in the given directory.