Retrieve a section from the currently cached source header.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_header_buffer_get_section

Purpose

Retrieve a section from the currently cached source header.

Arguments

  • $1 — Section name.
  • $2 — Name of the shell variable to receive the section.

Side effects

Assigns the extracted text to the caller-selected shell variable.

Returns

  • 0 when the section is found; 1 if the buffer is empty or section absent.

Usage

  sgnd_header_buffer_get_section Metadata metadata_text