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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/list_package_dirs.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/list_package_dirs.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/list_package_dirs.dart b/sdk/lib/_internal/pub_generated/lib/src/command/list_package_dirs.dart
index 6c08c762e3448b55fbe523f20900703862e4c900..c68d8e0289dcc6f89e887ef513ced7fe06cba95f 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/list_package_dirs.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/list_package_dirs.dart
@@ -14,18 +14,20 @@ import '../utils.dart';
/// Handles the `list-package-dirs` pub command.
class ListPackageDirsCommand extends PubCommand {
+ String get name => "list-package-dirs";
String get description => "Print local paths to dependencies.";
- String get usage => "pub list-package-dirs";
+ String get invocation => "pub list-package-dirs";
+ bool get takesArguments => false;
bool get hidden => true;
ListPackageDirsCommand() {
- commandParser.addOption(
+ argParser.addOption(
"format",
help: "How output should be displayed.",
allowed: ["json"]);
}
- Future onRun() {
+ Future run() {
log.json.enabled = true;
if (!entrypoint.lockFileExists) {
« no previous file with comments | « sdk/lib/_internal/pub_generated/lib/src/command/lish.dart ('k') | sdk/lib/_internal/pub_generated/lib/src/command/run.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698