Header set field

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_header_set_field

Purpose

Set an existing metadata field in a named header section.

Arguments

  • $1 — FILE - File path.
  • $2 — SECTION - Header section name.
  • $3 — FIELD - Metadata field name.
  • $4 — VALUE - Value to read, validate, render, or store.

Returns

  • 0 on replacement or dry-run; 1 on temporary-file or replacement failure; 2 if the field is missing.

Usage

  sgnd_header_set_field "$source_file" Metadata Purpose "Show updated example"