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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/global.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.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/global.dart b/sdk/lib/_internal/pub_generated/lib/src/command/global.dart
index c1b17302f6fd0a2e627a4c943f2b8b01651d2d78..c2ddfd8e3bdf110836d97aed551931e75cb6b01b 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/global.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/global.dart
@@ -12,13 +12,14 @@ import 'global_run.dart';
/// Handles the `global` pub command.
class GlobalCommand extends PubCommand {
+ String get name => "global";
String get description => "Work with global packages.";
- String get usage => "pub global <subcommand>";
+ String get invocation => "pub global <subcommand>";
- final subcommands = {
- "activate": new GlobalActivateCommand(),
- "deactivate": new GlobalDeactivateCommand(),
- "list": new GlobalListCommand(),
- "run": new GlobalRunCommand()
- };
+ GlobalCommand() {
+ addSubcommand(new GlobalActivateCommand());
+ addSubcommand(new GlobalDeactivateCommand());
+ addSubcommand(new GlobalListCommand());
+ addSubcommand(new GlobalRunCommand());
+ }
}

Powered by Google App Engine
This is Rietveld 408576698