Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/Terminal/
LocalPTYGetEnvironment.rs

1//! Snapshot the Mountain process environment as a `HashMap`.
2//! Inherited by every PTY spawned through `TerminalCreate`. Includes
3//! the keys merged in by `EnhanceShellEnvironment` at boot, so a
4//! Finder-launched `.app` exposes the user's interactive shell PATH
5//! / NVM_DIR / HOMEBREW_PREFIX / … to terminals it spawns.
6
7use std::collections::HashMap;
8
9use serde_json::{Value, json};
10
11pub async fn Fn() -> Result<Value, String> {
12	let Env:HashMap<String, String> = std::env::vars().collect();
13
14	Ok(json!(Env))
15}