afLibraryCommandMain function
Future<void>
afLibraryCommandMain({
- required AFDartParams paramsDart,
- required AFArgs args,
- required AFExtendBaseDelegate installBase,
- required AFExtendBaseDelegate installBaseLibrary,
- required AFExtendCommandsDelegate installCommand,
- 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);
}