afLibraryCommandMain function

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

The main function called from the bin/xxx_afib.dart command of a library.

Implementation

Future<void> afLibraryCommandMain({
  required AFDartParams paramsDart,
  required AFArgs args,
  required AFExtendBaseDelegate installBase,
  required AFExtendBaseDelegate installBaseLibrary,
  required AFExtendCommandsDelegate installCommand,
  required AFExtendCommandsLibraryDelegate installCommandLibrary
}) async {
  AFibD.config.setIsLibraryCommand(isLib: true);
  await _afCommandMain(paramsDart, args, "afib", "App-specific afib command", installBase, installBaseLibrary, [
    _afRegisterAppCommands,
    installCommand,
  ], installCommandLibrary);
}