Provide shared startup helpers for SolidGroundUX executable scripts
Source: target-root/usr/local/lib/solidgroundux/common/sgnd-exe-common.sh
Provide shared startup helpers for SolidGroundUX executable scripts
Public functions
- Emit a minimal bootstrap message
- Send a START message through the shared say formatter
- Send a INFO message through the shared say formatter
- Send a OK message through the shared say formatter
- Send a WARN message through the shared say formatter
- Send a FAIL message through the shared say formatter
- Send a DEBUG message through the shared say formatter
- Send a CANCEL message through the shared say formatter
- Send a END message through the shared say formatter
- Resolve a Framework-owned path with installed fallback
- Start a SolidGroundUX executable script
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_sgnd_lib_guard | Ensure direct execution is rejected and record that the library has been sourced. | — | — |
_sgnd_minimal_say_normalize_log_level | Convert aliases and legacy log-level names into a canonical SolidGroundUX | — | Writes the normalized log-level name to stdout. |
_sgnd_minimal_say_should_print_console | Determine whether a bootstrap message should be written before the full | — | — |
_load_bootstrapper | Resolve and source the main SolidGroundUX bootstrap library. | — | Writes a fatal message to stderr when the bootstrap library cannot be read. |
Description
Provides executable-level runtime support used after the framework has been located but before the full SolidGroundUX runtime has been bootstrapped.
The library:
- Provides minimal pre-bootstrap UI output helpers
- Resolves and loads the framework bootstrap library
- Provides the standard executable startup sequence through sgnd_exe_start
- Keeps executable templates small and consistent
Design principles
- Keep executable scripts focused on script-specific behavior
- Centralize shared executable startup mechanics
- Remain safe to source before the full framework is loaded
- Allow executable scripts to override helpers when needed
Role in framework
- Executable runtime support layer
- Loaded by executable templates after framework root resolution
- Bridges executable startup and full framework bootstrap
Non-goals
- Framework root discovery
- Application-specific behavior
- Full UI rendering after ui-say.sh has loaded
