commit | dc818770d5986feb1802d34b0bf8e45aba37e880 | [log] [tgz] |
---|---|---|
author | Phil Quitslund <pq@users.noreply.github.com> | Thu May 21 22:33:44 2015 |
committer | Phil Quitslund <pq@users.noreply.github.com> | Thu May 21 22:33:44 2015 |
tree | ce240cade17744a7e1b183078af4db3ba5ab4e9d | |
parent | 7993b642642c5df4dfc514268931943fef74bc0c [diff] | |
parent | 2db209eeb83e75b8f690d2d452f732926d40993c [diff] |
Merge pull request #10 from dart-lang/coveralls_rollback Rollback coveralls.
Check for and locate installed executables. Just like unix which(1), except:
pub global activate den den install which
import 'dart:io'; import 'package:which/which.dart'; main(arguments) async { // Asynchronously var git = await which('git', orElse: () => null); // Or synchronously var git = whichSync('git', orElse: () => null); if (git == null) { print('Please install git and try again'); exit(1); } await Process.run(git, ['add', '-A']); await Process.run(git, ['commit', '-m', arguments.first]); }