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

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

Issue 26284002: Rename "install" -> "get" and "update" -> "upgrade". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/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 f522854e307d7ecf22553ba6eab00e0b249d3796..6b1e126328412ef5ebffd4a7103b2c256bb27335 100644
--- a/sdk/lib/_internal/pub/lib/src/command.dart
+++ b/sdk/lib/_internal/pub/lib/src/command.dart
@@ -13,12 +13,12 @@ import 'package:stack_trace/stack_trace.dart';
import 'command/cache.dart';
import 'command/deploy.dart';
+import 'command/get.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/upgrade.dart';
import 'command/uploader.dart';
import 'command/version.dart';
import 'entrypoint.dart';
@@ -48,7 +48,7 @@ abstract class PubCommand {
/// this will be `true`.
bool get hidden => false;
- /// How to invoke this command (e.g. `"pub install [package]"`).
+ /// How to invoke this command (e.g. `"pub get [package]"`).
String get usage;
/// Whether or not this command requires [entrypoint] to be defined. If false,
@@ -176,12 +176,12 @@ _initCommands() {
var commands = {
'cache': new CacheCommand(),
'deploy': new DeployCommand(),
+ 'get': new GetCommand(),
'help': new HelpCommand(),
- 'install': new InstallCommand(),
'list-package-dirs': new ListPackageDirsCommand(),
'publish': new LishCommand(),
'serve': new ServeCommand(),
- 'update': new UpdateCommand(),
+ 'upgrade': new UpgradeCommand(),
'uploader': new UploaderCommand(),
'version': new VersionCommand()
};
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command/get.dart » ('j') | sdk/lib/_internal/pub/lib/src/command/serve.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698