# Author:       Li Junhao       l@x-cmd.com
# License:      Apache
# shellcheck    shell=sh        disable=SC2039,SC1090,SC3043,SC2263

# TODO: share_util - Platform detection utilities for install scripts
#
# This file will contain standalone functions that can be sourced without loading x-cmd:
# - OS detection (linux, darwin, win, freebsd, etc.)
# - Architecture detection (x64, arm64, armv7l)
# - Endianness detection (little/big)
# - Platform info (combined os_arch)
#
# The logic will be extracted from:
# - os/lib/osarch (name, arch detection)
# - cpu/lib/main (endianness detection)
#
# For now, use the corresponding functions in os and cpu modules.

