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

Unified Diff: which/lib/which.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « which/lib/src/which_impl.dart ('k') | which/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: which/lib/which.dart
diff --git a/which/lib/which.dart b/which/lib/which.dart
deleted file mode 100755
index c9047a3c11541130b6bbcac7650da65c3a474771..0000000000000000000000000000000000000000
--- a/which/lib/which.dart
+++ /dev/null
@@ -1,29 +0,0 @@
-
-library which;
-
-import 'dart:async';
-import 'dart:io';
-
-import 'src/candidate_paths.dart';
-import 'src/is_executable.dart';
-import 'src/which_impl.dart' as impl;
-
-/// Returns a future for the first [command] executable in the `PATH`.
-///
-/// If [command] is not found, [orElse] is called, which defaults to throwing.
-Future<String> which(String command, { orElse() }) => new Future(() => impl.which(
- command,
- getRealCandidatePaths(command),
- Platform.isWindows,
- (path, isWindows) => isExecutable(path, isWindows, FileStat.stat),
- orElse));
-
-/// Returns the first [command] executable in the `PATH`.
-///
-/// If [command] is not found, [orElse] is called, which defaults to throwing.
-String whichSync(String command, { orElse() }) => impl.whichSync(
- command,
- getRealCandidatePaths(command),
- Platform.isWindows,
- (path, isWindows) => isExecutableSync(path, isWindows, FileStat.statSync),
- orElse);
« no previous file with comments | « which/lib/src/which_impl.dart ('k') | which/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698