Execute one registered action and track its result

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_console_run_tracked

Purpose

Run a registered handler, persist its result and return the handler's original exit status.

Arguments

  • $1 ITEM_KEY - Registered menu item key.
  • $2 HANDLER - Function to execute.
  • $3+ - Optional arguments forwarded to the handler.

Usage

  sgnd_console_run_tracked "<item_key>" "<handler>"