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

Unified Diff: sdk/lib/_internal/pub/lib/src/command.dart

Issue 23272002: Command to print paths to dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused variable. Created 7 years, 4 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
« no previous file with comments | « sdk/lib/_internal/pub/bin/pub.dart ('k') | sdk/lib/_internal/pub/lib/src/command/cache.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command.dart b/sdk/lib/_internal/pub/lib/src/command.dart
index 97ad11ced5fcad13ea684cd5ef5dbef75fc62090..5c72d5813b5f36ba1371d55fc4afe39f7cc5d088 100644
--- a/sdk/lib/_internal/pub/lib/src/command.dart
+++ b/sdk/lib/_internal/pub/lib/src/command.dart
@@ -15,6 +15,7 @@ import 'command/deploy.dart';
import 'command/help.dart';
import 'command/install.dart';
import 'command/lish.dart';
+import 'command/list_package_dirs.dart';
import 'command/serve.dart';
import 'command/update.dart';
import 'command/uploader.dart';
@@ -42,6 +43,10 @@ abstract class PubCommand {
/// A one-line description of this command.
String get description;
+ /// If the command is undocumented and should not appear in command listings,
+ /// this will be `true`.
+ bool get hidden => false;
+
/// How to invoke this command (e.g. `"pub install [package]"`).
String get usage;
@@ -193,6 +198,7 @@ _initCommands() {
'deploy': new DeployCommand(),
'help': new HelpCommand(),
'install': new InstallCommand(),
+ 'list-package-dirs': new ListPackageDirsCommand(),
'publish': new LishCommand(),
'serve': new ServeCommand(),
'update': new UpdateCommand(),
« no previous file with comments | « sdk/lib/_internal/pub/bin/pub.dart ('k') | sdk/lib/_internal/pub/lib/src/command/cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698