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

Unified Diff: packages/which/lib/which.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/which/lib/src/which_impl.dart ('k') | packages/which/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/which/lib/which.dart
diff --git a/packages/which/lib/which.dart b/packages/which/lib/which.dart
deleted file mode 100755
index c9047a3c11541130b6bbcac7650da65c3a474771..0000000000000000000000000000000000000000
--- a/packages/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 | « packages/which/lib/src/which_impl.dart ('k') | packages/which/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698