s6.utils.osΒΆ

Operating-system selection helpers.

s6.utils.os.os_switch(**cases: Any) str

Return the value matching the current OS from keyword cases.

The first matching key across the current OS aliases wins. Supported aliases include osx/macos/darwin on macOS, Linux distro IDs such as ubuntu when available, linux on generic Linux, and windows/win32 on Windows.