registerPlaybook function
Registers the playbook class className (from importPath, relative to
lib/) under name in lib/bootstrap/playbooks.dart, creating the file
when it doesn't exist.
Implementation
Future<LiveRegistration> registerPlaybook({
required String name,
required String className,
required String importPath,
}) => _register(
path: playbooksRegistryPath,
template: playbooksRegistryTemplate,
configName: 'playbooks',
label: 'Playbook',
importPath: importPath,
insert: (String file) =>
insertPlaybookRegistration(file, name: name, className: className),
hasMap: (String file) =>
hasRegistryMap(file, variable: 'playbooks', type: 'Playbook Function()'),
);