Framework Information

SolidGroundUX DocumentationSolidGroundUX
NL

Provide framework metadata and runtime information helpers

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

Provide framework metadata and runtime information helpers

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_sgnd_lib_guardEnsure direct execution is rejected and record that the library has been sourced.——
_sgnd_print_arg_spec_entryPrint one parsed argument specification and its current variable value.- $1 — Specification entry in NAME\SHORT\
_sgnd_print_arg_spec_listPrint a labeled list of argument specifications and their current values.- $1 — Heading to display.—
_sgnd_print_cfg_passRender a named configuration array, filtered by the accepted scope values.- $1 — Section heading.—

Description

Exposes information about the SolidGroundUX framework and runtime environment.

The library:

  • Provides access to framework identity (name, version, paths)
  • Exposes resolved bootstrap values such as SGND_FRAMEWORK_ROOT and runtime paths
  • Supplies helper functions for displaying framework and environment details
  • Supports diagnostics, logging, and informational output

Design principles

  • Keep information access centralized and consistent
  • Avoid duplication of framework identity data across modules
  • Ensure values reflect the active runtime environment
  • Keep implementation lightweight and dependency-free where possible

Role in framework

  • Provides introspection capabilities for scripts and tools
  • Supports diagnostics, debugging, and informational commands
  • Complements bootstrap and configuration modules

Non-goals

  • Configuration management (handled by cfg.sh)
  • Argument parsing or user interaction
  • Persistent state tracking