addPlaybooksToProvider function
Returns source with playbooks: playbooks added as the last argument
of its first nylo.configure(...) call and playbooksImport added after
the last import.
Returns source unchanged when it already passes playbooks, and null when
it has no nylo.configure(...) call.
Implementation
String? addPlaybooksToProvider(String source) {
if (_passesPlaybooks(source)) return source;
return _addConfigureArgument(
source,
argument: 'playbooks: playbooks',
import: playbooksImport,
);
}