Start a SolidGroundUX executable script

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_exe_start

Purpose

Run the standard SolidGroundUX executable startup sequence.

Arguments

  • $@ — Command-line arguments passed from the executable main function.

Options

  • --no-title — Suppress automatic rendering of the standard SolidGroundUX title bar.

Behavior

  • Processes executable-runtime options before framework bootstrap.
  • Loads the framework bootstrapper.
  • Calls sgnd_bootstrap with the remaining supplied arguments.
  • Exits when bootstrap fails.
  • Handles built-in framework arguments.
  • Updates the run mode.
  • Prints the standard title bar unless --no-title was supplied.

Side effects

Sources framework libraries, initializes runtime globals, may exit for info-only built-ins such as --help or --show, and may write the standard title bar to the terminal.

Returns

  • 0 when startup completed and script-specific logic may continue.

Usage

  sgnd_exe_start "$@"
  sgnd_exe_start --no-title "$@"