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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/global_list.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/global_list.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/global_list.dart b/sdk/lib/_internal/pub_generated/lib/src/command/global_list.dart
index c498b42545ba87e2c1ae911866cda2036145b927..1de107305dbfa8e454fba65f9193723d033953d7 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/global_list.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/global_list.dart
@@ -10,12 +10,13 @@ import '../command.dart';
/// Handles the `global list` pub command.
class GlobalListCommand extends PubCommand {
- bool get allowTrailingOptions => false;
+ String get name => "list";
String get description => 'List globally activated packages.';
- String get usage => 'pub global list';
+ String get invocation => 'pub global list';
+ bool get allowTrailingOptions => false;
+ bool get takesArguments => false;
- Future onRun() {
+ void run() {
globals.listActivePackages();
- return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698