Chromium Code Reviews

Side by Side Diff: packages/cli_util/lib/cli_util.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.
Jump to:
View unified diff |
« no previous file with comments | « packages/cli_util/codereview.settings ('k') | packages/cli_util/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library cli_util; 5 library cli_util;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:which/which.dart'; 10 import 'package:which/which.dart';
(...skipping 48 matching lines...)
59 59
60 return null; 60 return null;
61 } 61 }
62 62
63 bool _isSdkDir(Directory dir) => _joinFile(dir, ['version']).existsSync(); 63 bool _isSdkDir(Directory dir) => _joinFile(dir, ['version']).existsSync();
64 64
65 File _joinFile(Directory dir, List<String> files) { 65 File _joinFile(Directory dir, List<String> files) {
66 String pathFragment = files.join(Platform.pathSeparator); 66 String pathFragment = files.join(Platform.pathSeparator);
67 return new File("${dir.path}${Platform.pathSeparator}${pathFragment}"); 67 return new File("${dir.path}${Platform.pathSeparator}${pathFragment}");
68 } 68 }
OLDNEW
« no previous file with comments | « packages/cli_util/codereview.settings ('k') | packages/cli_util/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine