capture-env¶
Captures the value of environment variables.
Use Cases¶
- Record which executables were available (PATH)
- Save environment-based configuration (e.g.,
CUDA_VISIBLE_DEVICES) - Debug environment issues
- Track user context (e.g.,
USER,HOME)
Configuration¶
Required Options¶
| Option | Type | Description |
|---|---|---|
name |
string | Name of the environment variable to capture |
Example¶
Output Example¶
When Variable Exists¶
{
"__meta": {
"id": "capture-env",
"config": {
"name": "PATH"
},
"success": true
},
"value": "/usr/local/bin:/usr/bin:/bin"
}