afCommandStartup function
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();
}