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

Side by Side Diff: lib/src/command.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 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 | « lib/src/cached_package.dart ('k') | lib/src/command/barback.dart » ('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) 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 library pub.command;
6
7 import 'package:args/args.dart'; 5 import 'package:args/args.dart';
8 import 'package:args/command_runner.dart'; 6 import 'package:args/command_runner.dart';
9 7
10 import 'entrypoint.dart'; 8 import 'entrypoint.dart';
11 import 'log.dart' as log; 9 import 'log.dart' as log;
12 import 'global_packages.dart'; 10 import 'global_packages.dart';
13 import 'system_cache.dart'; 11 import 'system_cache.dart';
14 12
15 /// The base class for commands for the pub executable. 13 /// The base class for commands for the pub executable.
16 /// 14 ///
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 /// 82 ///
85 /// If the parsing fails, prints a usage message and exits. 83 /// If the parsing fails, prints a usage message and exits.
86 int parseInt(String intString, String name) { 84 int parseInt(String intString, String name) {
87 try { 85 try {
88 return int.parse(intString); 86 return int.parse(intString);
89 } on FormatException catch (_) { 87 } on FormatException catch (_) {
90 usageException('Could not parse $name "$intString".'); 88 usageException('Could not parse $name "$intString".');
91 } 89 }
92 } 90 }
93 } 91 }
OLDNEW
« no previous file with comments | « lib/src/cached_package.dart ('k') | lib/src/command/barback.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698