commit | f94ad97c866e8ad1d9d48afd367e2eaadadf1bea | [log] [tgz] |
---|---|---|
author | pq <pquitslund@google.com> | Fri May 22 17:23:42 2015 |
committer | pq <pquitslund@google.com> | Fri May 22 17:23:42 2015 |
tree | 7781c02e3c5bdf664eb7f4658ce9d23773808311 | |
parent | d439a1cf0b3917b70028d5182ab04f1f7d25f361 [diff] | |
parent | c702b3e137ad12a9ea1a010d0677f6388d2e87a6 [diff] |
Merge branch 'master' into fix_bug_ref Conflicts: lib/src/util.dart
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]); }