commit | b92330b876b832e3c632629288d0ee1eca9571c5 | [log] [tgz] |
---|---|---|
author | Phil Quitslund <pq@users.noreply.github.com> | Tue May 26 20:14:52 2015 |
committer | Phil Quitslund <pq@users.noreply.github.com> | Tue May 26 20:14:52 2015 |
tree | 4d158ccf0f2c866bee90bed1085edc132e7f750e | |
parent | 23f5ad9b17f320204e8f48a9aa62d6d61e578a67 [diff] |
Roll coveralls back to latest. (Fix #11.)
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]); }