3085912d01
This CL does several things: * Adds explicit infrastructure for package sources. * Adds the Dart SDK as such a source. * Adds an explicit class for managing the packages/ directory (AppCache, as opposed to SystemCache). * Adds an "install" command that installs to packages/, backed up by the system cache. Review URL: https://chromiumcodereview.appspot.com//10340005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7398 260f80e4-7a28-3924-810f-c04153c831b5
15 lines
498 B
Dart
15 lines
498 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/** Handles the `install` pub command. */
|
|
class InstallCommand extends PubCommand {
|
|
String get description() => "install the current package's dependencies";
|
|
|
|
void onRun() {
|
|
packagesDir.installDependencies().then((_) {
|
|
print('Dependencies installed!');
|
|
});
|
|
}
|
|
}
|