Pub and package helpers
pubspec.yaml:
tekartik_pub:
git:
url: https://github.com/tekartik/pub.dart
version: '>=0.12.2'import 'package:tekartik_pub/pub_fs_io.dart';
main() async {
IoFsPubPackage pkg = new IoFsPubPackage(Directory.current);
// Run all tests
final result = await pkg.runPub(pubRunTestArgs());
print('exitCode: ${result.exitCode}');
}
Recursively call pub get
pubget
Recursively call pub upgrade
pubupgrade