Files
dungeon-paper-app/scripts/get_version.dart
Chen Asraf 905ed49245 refactor: i18n (#30)
* feat: intl poc

* refactor: more translation migrations

* refactor: move `tr` export to nicer path

* refactor: more translation updates

* feat: intl on many more files

* feat: more i18n replacements

* feat: more translation updates

* feat: replace all left usages of S.current

* chore: last forgotten cleanups

* refactor: remove old intl files

* chore: format all files

* docs: update docs

chore: use git version of i18n
2023-12-09 01:09:30 +02:00

16 lines
328 B
Dart

import 'dart:io';
void main() {
// get version from pubspec.yaml
final pubspecFile = File('pubspec.yaml');
final version = pubspecFile
.readAsStringSync()
.split('\n')
.firstWhere((x) => x.startsWith('version:'))
.split(':')
.last
.trim();
// ignore: avoid_print
print(version);
}