afCommandStartup function

void afCommandStartup(
  1. Future<void> onRun()
)

A wrapper which sets up AFib's global state for use in commands, prior to call the main AFib function.

Implementation

void afCommandStartup(Future<void> Function() onRun) async {
  AFibD.registerGlobals();
  await onRun();
}