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

Unified Diff: sdk/lib/_internal/pub/lib/src/command_version.dart

Issue 14092006: Move pub's arg parsing to bin/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command_uploader.dart ('k') | sdk/lib/_internal/pub/lib/src/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command_version.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command_version.dart b/sdk/lib/_internal/pub/lib/src/command_version.dart
index 7c9ad636815ffd8fa9f7e0c387ce450db406abf8..457eebd3f83a1ae79fd868f8d2168bf27909f3e8 100644
--- a/sdk/lib/_internal/pub/lib/src/command_version.dart
+++ b/sdk/lib/_internal/pub/lib/src/command_version.dart
@@ -5,7 +5,10 @@
library command_version;
import 'dart:async';
-import 'pub.dart';
+
+import 'command.dart';
+import 'log.dart' as log;
+import 'sdk.dart' as sdk;
/// Handles the `version` pub command.
class VersionCommand extends PubCommand {
@@ -14,6 +17,6 @@ class VersionCommand extends PubCommand {
bool get requiresEntrypoint => false;
Future onRun() {
- printVersion();
+ log.message('Pub ${sdk.version}');
}
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command_uploader.dart ('k') | sdk/lib/_internal/pub/lib/src/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698