Core Utilities

SolidGroundUX DocumentationSolidGroundUX
NL

Provide foundational utility functions and shared primitives

Source: target-root/usr/local/lib/solidgroundux/common/sgnd-core.sh

Provide foundational utility functions and shared primitives

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_sgnd_lib_guardEnsure direct execution is rejected and record that the library has been sourced.——

Description

Contains the lowest-level generic helpers used throughout the SolidGroundUX framework.

The library:

  • Defines generic reusable helper functions
  • Provides string, array, and low-level utility primitives
  • Implements shared conventions and diagnostics helpers
  • Avoids system-, UI-, and business-specific behavior where possible

Design principles

  • Keep utilities generic and broadly reusable
  • Avoid domain-specific logic in core helpers
  • Prefer clarity and predictability over cleverness
  • Minimize dependencies to keep the core lightweight

Role in framework

  • Foundational layer used by nearly all other libraries
  • Supports argument parsing, configuration, UI, and script logic
  • Acts as the lowest-level shared functionality layer

Non-goals

  • Business logic or application-specific behavior
  • UI rendering or user interaction handling
  • System administration and host/runtime operations (handled in sgnd-system)
  • Configuration or state management (handled in dedicated modules)