Mountain/Binary/IPC/ProcessCommand/process_get_shell_env.rs
1//! Tauri command - return the full environment of the Mountain
2//! process. The process inherits the user's shell environment on every
3//! supported platform, so this is `process.env` for renderer code.
4
5use std::collections::HashMap;
6
7#[tauri::command]
8pub async fn process_get_shell_env() -> Result<HashMap<String, String>, String> { Ok(std::env::vars().collect()) }