afAppCommandMain function

Future<void> afAppCommandMain({
  1. required AFArgs args,
  2. required AFDartParams paramsDart,
  3. required AFExtendBaseDelegate installBase,
  4. required AFExtendCommandsDelegate installCommand,
  5. required AFExtendBaseDelegate installBaseLibrary,
  6. required AFExtendCommandsLibraryDelegate installCommandLibrary,
})

The function called from your bin/xxx_afib.dart file.

Implementation

Future<void> afAppCommandMain({
  required AFArgs args,
  required AFDartParams paramsDart,
  required AFExtendBaseDelegate installBase,
  required AFExtendCommandsDelegate installCommand,
  required AFExtendBaseDelegate installBaseLibrary,
  required AFExtendCommandsLibraryDelegate installCommandLibrary
}) async {
  await _afCommandMain(paramsDart, args, "afib", "App-specific afib command", installBase, installBaseLibrary, [
    _afRegisterAppCommands,
    installCommand
  ], installCommandLibrary);
}