Functions§
- ask_
for_ confirmation - build_
blocking_ http_ client - check_
license - command_
exists - confirm_
untrusted_ source - copy_
dir_ all - expand_
placeholders - expand_
tilde - format_
bytes - format_
size_ diff - generate_
package_ id - Generates a unique, origin-aware ID for a package.
- generate_
versioned_ package_ id - Generates a unique ID for a package including its version.
- get_
all_ available_ package_ managers - Scans the system for all supported package managers.
- get_
cpu_ info - get_
current_ shell - get_
db_ base_ dir - get_
db_ root - Returns the root directory for the package database.
- get_
desktop_ environment - get_
display_ server - get_
distro_ version - get_
git_ base_ dir - get_
gpu_ info - get_
http_ client - Creates an HTTP client with Zoi’s default configuration.
- get_
init_ system - get_
kernel_ version - get_
linux_ distribution - get_
linux_ distribution_ info - get_
linux_ distro_ family - Detects the general family of a Linux distribution (e.g. “debian”, “arch”, “fedora”).
- get_
native_ package_ manager - Identifies the primary package manager for the current operating system.
- get_
package_ dir_ name - Creates the directory name for the package in the store.
Format:
{hash}-{name} - get_
platform - Returns a standard Zoi platform identifier (e.g. “linux-amd64”, “windows-arm64”).
- get_
privilege_ escalator - get_
store_ base_ dir - Returns the root directory of the package store for a given scope.
- get_
user_ home - Returns the home directory of the current user, or the original user if run via sudo or doas.
- is_
admin - is_
mini_ mode - is_
platform_ compatible - is_
safe_ path - Verifies that a given path is “Safe” and doesn’t attempt to escape the base directory.
- is_
zoios - Returns true if the current system is a ZoiOS-based distribution (like Parlex).
- resolve_
fallback_ scope - Resolves the default installation scope based on the current environment.
- retry_
backoff_ sleep - Performs a jittered exponential backoff sleep.
- run_
shell_ command - run_
shell_ command_ quietly - set_
path_ owner - set_
path_ read_ only - set_
path_ writable - symlink_
dir - symlink_
file