Add a refresh command that rebuilds the snapshot and reloads it on the device

This provides a fast way to iterate on changes to a Flutter app that only
involve updates to Dart code and do not require a full build and install
of the FLX and APK
This commit is contained in:
Jason Simmons
2016-02-09 10:40:21 -08:00
parent 7458ed226a
commit bf1246d881
3 changed files with 95 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ import 'src/commands/ios.dart';
import 'src/commands/list.dart';
import 'src/commands/listen.dart';
import 'src/commands/logs.dart';
import 'src/commands/refresh.dart';
import 'src/commands/run_mojo.dart';
import 'src/commands/start.dart';
import 'src/commands/stop.dart';
@@ -47,6 +48,7 @@ Future main(List<String> args) async {
..addCommand(new ListCommand())
..addCommand(new ListenCommand())
..addCommand(new LogsCommand())
..addCommand(new RefreshCommand())
..addCommand(new RunMojoCommand())
..addCommand(new StartCommand())
..addCommand(new StopCommand())