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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/version.dart

Issue 805393002: Update pub to use the new command runner API in args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 5 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/lib/src/command/version.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/version.dart b/sdk/lib/_internal/pub_generated/lib/src/command/version.dart
index bab6c6b9bbd69cdefd2d100207e32c11c48423cc..de40572a3a430a86ad405073573ebbd48af5a253 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/version.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/version.dart
@@ -4,19 +4,17 @@
library pub.command.version;
-import 'dart:async';
-
import '../command.dart';
import '../log.dart' as log;
import '../sdk.dart' as sdk;
/// Handles the `version` pub command.
class VersionCommand extends PubCommand {
+ String get name => "version";
String get description => "Print pub version.";
- String get usage => "pub version";
+ String get invocation => "pub version";
- Future onRun() {
+ void run() {
log.message("Pub ${sdk.version}");
- return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698