readSpecVersionsFromFilePath function

List<SpecVersion> readSpecVersionsFromFilePath(
  1. String filePath
)

Implementation

List<SpecVersion> readSpecVersionsFromFilePath(String filePath) {
  if (filePath.endsWith('.json')) {
    return _readSpecVersionFromJson(filePath);
  } else {
    return _readSpecVersionJsonLines(filePath);
  }
}