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