INNER CODE UNIT · Dart
_Color
livekit/client-sdk-flutter · scripts/check_version.dart:35
class _Color {
static const reset = '\x1B[0m';
static const green = '\x1B[32m';
static const bold = '\x1B[1m';
}
String readFile(String path) {
try {
return File(path).readAsStringSync();
} catch (e) {
throw Exception('Failed to read $path: $e');
}
}
String extractVersionFromPubspec() {
final content = readFile(_Path.pubspec);
final doc = loadYaml(content);
final versionStr = doc['version'];