Expand description
Environment detection utilities
This module provides utilities for detecting the current runtime environment and platform-specific features.
Structs§
- Environment
Info - Environment information structure
Functions§
- get_
all_ env_ vars - Get all environment variables
- get_
cache_ dir - Get cache directory path
- get_
config_ dir - Get config directory path
- get_
cpu_ count - Get the number of CPU cores
- get_
current_ dir - Get current working directory
- get_
data_ dir - Get data directory path
- get_
env_ var - Get environment variable
- get_
env_ var_ or_ default - Get environment variable with default value
- get_
environment_ info - Get comprehensive environment information
- get_
home_ dir - Get home directory path
- get_
physical_ cpu_ count - Get the number of physical CPU cores
- get_
temp_ dir - Get temporary directory path
- has_
env_ var - Check if environment variable exists
- is_
32bit - Check if running on 32-bit architecture
- is_
64bit - Check if running on 64-bit architecture
- is_ci
- Check if running in CI environment
- is_
debug - Check if running in debug mode
- is_
linux - Check if running on Linux
- is_
macos - Check if running on macOS
- is_
release - Check if running in release mode
- is_unix
- Check if running on Unix-like system
- is_
windows - Check if running on Windows
- run_
on_ os - Execute code only on specific operating system
- run_
on_ unix - Execute code only on Unix-like systems
- run_
on_ windows - Execute code only on Windows