Add flutter precache (#3207)

This command explicitly populates the flutter tool's cache of binary artifacts.
Also, teach `flutter create` to update the cache in case its the first command
that a user runs.
This commit is contained in:
Adam Barth
2016-04-08 08:51:44 -07:00
parent dd5831cb36
commit 412ce9d295
3 changed files with 28 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import 'src/commands/drive.dart';
import 'src/commands/install.dart';
import 'src/commands/listen.dart';
import 'src/commands/logs.dart';
import 'src/commands/precache.dart';
import 'src/commands/refresh.dart';
import 'src/commands/run.dart';
import 'src/commands/run_mojo.dart';
@@ -63,6 +64,7 @@ Future<Null> main(List<String> args) async {
..addCommand(new InstallCommand())
..addCommand(new ListenCommand())
..addCommand(new LogsCommand())
..addCommand(new PrecacheCommand())
..addCommand(new RefreshCommand())
..addCommand(new RunCommand())
..addCommand(new RunMojoCommand(hidden: !verboseHelp))