Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: packages/which/README.md

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « packages/which/LICENSE ('k') | packages/which/drone.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 which [![pub package](http://img.shields.io/pub/v/which.svg)](https://pub.dartla ng.org/packages/which) [![Build Status](https://drone.io/github.com/seaneagan/wh ich.dart/status.png)](https://drone.io/github.com/seaneagan/which.dart/latest) [ ![Coverage Status](https://img.shields.io/coveralls/seaneagan/which.dart.svg)](h ttps://coveralls.io/r/seaneagan/which.dart?branch=master)
2 =====
3
4 Check for and locate installed executables. Just like unix [which(1)][unix_whic h], except:
5
6 * Doesn't shell out (fast).
7 * Cross-platform (works on windows).
8
9 ## Install
10
11 ```shell
12 pub global activate den
13 den install which
14 ```
15
16 ## Usage
17
18 ```dart
19 import 'dart:io';
20
21 import 'package:which/which.dart';
22
23 main(arguments) async {
24
25 // Asynchronously
26 var git = await which('git', orElse: () => null);
27
28 // Or synchronously
29 var git = whichSync('git', orElse: () => null);
30
31 if (git == null) {
32 print('Please install git and try again');
33 exit(1);
34 }
35
36 await Process.run(git, ['add', '-A']);
37 await Process.run(git, ['commit', '-m', arguments.first]);
38 }
39 ```
40
41 [unix_which]: http://en.wikipedia.org/wiki/Which_%28Unix%29
OLDNEW
« no previous file with comments | « packages/which/LICENSE ('k') | packages/which/drone.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698