Dispatch a normalized menu choice

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_menu_dispatch

Purpose

Execute or navigate the current menu through the public menu API.

Arguments

  • $1 — CHOICE - Normalized choice returned by sgnd_menu_read_choice.

Outputs (globals)

SGND_LAST_WAITSECS - Post-action wait configured by the selected item.

Returns

Status returned by the selected menu action or navigation operation.

Usage

  sgnd_menu_dispatch "$choice"