Apero.OS (Apero v3.0.0)

Copy Markdown View Source

Operating system information utilities for Apero (pure-Elixir subset).

Provides a minimal interface for querying OS type and hostname using only pure Erlang/Elixir standard library calls — no shell execution.

For shell-based operations (arch, kernel version, distribution, CPU count, memory, root check, WSL/container detection) see Trebejo.OS.

Summary

Functions

Returns the machine hostname.

Returns the operating system type.

Types

os_type()

@type os_type() :: :linux | :macos | :windows | :unknown

Functions

hostname()

@spec hostname() :: binary()

Returns the machine hostname.

type()

@spec type() :: os_type()

Returns the operating system type.

Possible values: :linux, :macos, :windows, :unknown.