Movatterモバイル変換


[0]ホーム

URL:


Search

Lib.rs

Configuration|Operating systems
#env-var#variables#environment#path#global#env

globenv

Globally set & read environment variables and paths on Windows, macOS or Linux

3 unstable releases

0.2.1Nov 22, 2023
0.2.0Nov 5, 2023
0.1.0Oct 16, 2023

#782 inConfiguration

41 downloads per month

Apache-2.0

11KB
232lines

globenv

Globally set & read environment variables and paths (not just for the current process) on Windows, macOS or Linux

Version badgeDownloads badgeLicense badge

Example:

useglobenv::*;// Get environment variableget_var("key").unwrap().unwrap();// Set environment variableset_var("key","value").unwrap();// Remove environment variableremove_var("key").unwrap();// Get all environment pathsget_paths().unwrap();// Set environment pathset_path("example/path").unwrap();// Remove environment pathremove_path("example/path").unwrap();

Credit:

Based on theglobalenv by@nicolasbauw

Dependencies

~0–10MB
~41KSLoC


[8]ページ先頭

©2009-2025 Movatter.jp