On exit add

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_on_exit_add

Purpose

Register a function or command to run through the SolidGroundUX exit dispatcher.

Returns

0 after appending the handler to SGND_ON_EXIT_HANDLERS.

Usage

  sgnd_on_exit_add cleanup_handler