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

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

Issue 356953005: Link to dartlang.org in pub's command-line help messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | sdk/lib/_internal/pub/lib/src/command/build.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 1765c108aad97d816a8ad2485f27bf822159e037..ddf6f30331da4a3f5ff353d7bb2e6d91f3790612 100644
--- a/sdk/lib/_internal/pub/lib/src/command.dart
+++ b/sdk/lib/_internal/pub/lib/src/command.dart
@@ -56,6 +56,8 @@ abstract class PubCommand {
buffer.writeln();
buffer.writeln(
'Use "pub help [command]" for more information about a command.');
+ buffer.writeln(
+ 'See http://dartlang.org/tools/pub for detailed documentation.');
log.message(buffer);
}
@@ -119,6 +121,9 @@ abstract class PubCommand {
/// How to invoke this command (e.g. `"pub get [package]"`).
String get usage;
+ /// The URL for web documentation for this command.
+ String get docUrl => null;
+
/// Whether or not this command requires [entrypoint] to be defined.
///
/// If false, pub won't look for a pubspec and [entrypoint] will be null when
@@ -244,6 +249,11 @@ abstract class PubCommand {
buffer.write(_listCommands(subcommands));
}
+ if (docUrl != null) {
+ buffer.writeln();
+ buffer.writeln("See $docUrl for detailed documentation.");
+ }
+
return buffer.toString();
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698