sys
host module
OS and hardware facts — gatherer fodder: family, osname, arch, cpucount, memory.
use sys — OS and hardware facts (gatherer fodder).
| function | signature | notes |
|---|---|---|
| family | () -> string | linux/windows/macos |
| os_name | () -> string | distro on Linux |
| os_version | () -> string | |
| kernel_version | () -> string | |
| arch | () -> string | |
| cpu_count | () -> int | |
| total_memory / available_memory | () -> int | bytes |