pub async fn capture( shell_path: impl AsRef<Path>, args: &[String], directory: impl AsRef<Path>, ) -> Result<HashMap<String, String>>
Capture all environment variables from the login shell in the given directory.