std.os¶
Process execution and environment.
Functions¶
| Function | Signature | Description |
|---|---|---|
run |
(cmd: str) -> i32 |
Execute shell command. Returns exit code. |
getenv |
(name: str) -> str |
Get environment variable. Returns empty string if not set. |
cwd |
() -> str |
Get current working directory. |