buildSource method
Implementation
@override
PubspecSource buildSource(ArgResults argResults) {
final groupId = argResults['group-id'] as String;
final token = argResults['token'] as String;
final apiUrl = argResults['api-url'] as String;
final retries = int.parse(argResults['retries'] as String);
final timeout = int.parse(argResults['timeout'] as String);
return GitlabSource(
groupId: groupId,
token: token,
apiUrl: apiUrl,
apiClient: ApiClient(
retries: retries,
delayBetweenRequests: Duration(milliseconds: timeout),
),
);
}