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

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

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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_activate.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/global_activate.dart b/sdk/lib/_internal/pub_generated/lib/src/command/global_activate.dart
similarity index 84%
copy from sdk/lib/_internal/pub/lib/src/command/global_activate.dart
copy to sdk/lib/_internal/pub_generated/lib/src/command/global_activate.dart
index d4335c23c9105bd8c4a9ca0173b0c4b6c8817158..f567f4bf04b6918ff4b89e9753ad975936ce18bb 100644
--- a/sdk/lib/_internal/pub/lib/src/command/global_activate.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/global_activate.dart
@@ -18,20 +18,27 @@ class GlobalActivateCommand extends PubCommand {
String get invocation => "pub global activate <package...>";
GlobalActivateCommand() {
- argParser.addOption("source",
+ argParser.addOption(
+ "source",
abbr: "s",
help: "The source used to find the package.",
allowed: ["git", "hosted", "path"],
defaultsTo: "hosted");
- argParser.addFlag("no-executables", negatable: false,
+ argParser.addFlag(
+ "no-executables",
+ negatable: false,
help: "Do not put executables on PATH.");
- argParser.addOption("executable", abbr: "x",
+ argParser.addOption(
+ "executable",
+ abbr: "x",
help: "Executable(s) to place on PATH.",
allowMultiple: true);
- argParser.addFlag("overwrite", negatable: false,
+ argParser.addFlag(
+ "overwrite",
+ negatable: false,
help: "Overwrite executables from other packages with the same name.");
}
@@ -71,7 +78,9 @@ class GlobalActivateCommand extends PubCommand {
var repo = readArg("No Git repository given.");
// TODO(rnystrom): Allow passing in a Git ref too.
validateNoExtraArgs();
- return globals.activateGit(repo, executables,
+ return globals.activateGit(
+ repo,
+ executables,
overwriteBinStubs: overwrite);
case "hosted":
@@ -88,13 +97,18 @@ class GlobalActivateCommand extends PubCommand {
}
validateNoExtraArgs();
- return globals.activateHosted(package, constraint, executables,
+ return globals.activateHosted(
+ package,
+ constraint,
+ executables,
overwriteBinStubs: overwrite);
case "path":
var path = readArg("No package to activate given.");
validateNoExtraArgs();
- return globals.activatePath(path, executables,
+ return globals.activatePath(
+ path,
+ executables,
overwriteBinStubs: overwrite);
}

Powered by Google App Engine
This is Rietveld 408576698