OLD | NEW |
(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 } |
OLD | NEW |