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
- Print cfg
- Print framework metadata
- Print metadata
- Print args
- Print state
- Print license
- Print readme
- Showenvironment
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_sgnd_print_arg_spec_entry | Print one parsed argument specification and its current variable value. | - $1 — Specification entry in NAME\ | SHORT\ |
_sgnd_print_arg_spec_list | Print a labeled list of argument specifications and their current values. | - $1 — Heading to display. | — |
_sgnd_print_cfg_pass | Render 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
