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

Side by Side Diff: sdk/lib/_internal/pub/bin/pub.dart

Issue 14261016: Import io.dart in pub.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:math' as math; 7 import 'dart:math' as math;
8 8
9 import 'package:args/args.dart'; 9 import 'package:args/args.dart';
10 import 'package:pathos/path.dart' as path; 10 import 'package:pathos/path.dart' as path;
11 11
12 import '../lib/src/command.dart'; 12 import '../lib/src/command.dart';
13 import '../lib/src/exit_codes.dart' as exit_codes; 13 import '../lib/src/exit_codes.dart' as exit_codes;
14 import '../lib/src/io.dart';
14 import '../lib/src/log.dart' as log; 15 import '../lib/src/log.dart' as log;
15 import '../lib/src/sdk.dart' as sdk; 16 import '../lib/src/sdk.dart' as sdk;
16 import '../lib/src/system_cache.dart'; 17 import '../lib/src/system_cache.dart';
17 import '../lib/src/utils.dart'; 18 import '../lib/src/utils.dart';
18 19
19 /// The parser for arguments that are global to Pub rather than specific to a 20 /// The parser for arguments that are global to Pub rather than specific to a
20 /// single command. 21 /// single command.
21 ArgParser get pubArgParser { 22 ArgParser get pubArgParser {
22 var parser = new ArgParser(); 23 var parser = new ArgParser();
23 parser.addFlag('help', abbr: 'h', negatable: false, 24 parser.addFlag('help', abbr: 'h', negatable: false,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 for (var name in names) { 150 for (var name in names) {
150 buffer.write(' ${padRight(name, length)} ' 151 buffer.write(' ${padRight(name, length)} '
151 '${PubCommand.commands[name].description}\n'); 152 '${PubCommand.commands[name].description}\n');
152 } 153 }
153 154
154 buffer.write('\n'); 155 buffer.write('\n');
155 buffer.write( 156 buffer.write(
156 'Use "pub help [command]" for more information about a command.'); 157 'Use "pub help [command]" for more information about a command.');
157 log.message(buffer.toString()); 158 log.message(buffer.toString());
158 } 159 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698