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

Side by Side Diff: pkg/front_end/tool/vm/reload.dart

Issue 2928483005: Add an incremental reloader example and a utility tool to trigger a reload by (Closed)
Patch Set: CL comments Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:front_end/src/vm/reload.dart';
6
7 /// Connects to an existing VM's service protocol and issues a hot-reload
8 /// request. The VM must have been launched with `--observe` to enable the
9 /// service protocol.
10 ///
11 // TODO(sigmund): provide flags to configure the vm-service port.
12 main(List<String> args) async {
13 if (args.length == 0) {
14 print('usage: reload <entry-uri>');
15 return;
16 }
17
18 var reloader = new VmReloader();
19 await reloader.reload(Uri.base.resolve(args.first));
20 await reloader.disconnect();
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698