| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.runner.console; | |
| 6 | |
| 7 import 'dart:io'; | 5 import 'dart:io'; |
| 8 import 'dart:math' as math; | 6 import 'dart:math' as math; |
| 9 | 7 |
| 10 import 'package:async/async.dart'; | 8 import 'package:async/async.dart'; |
| 11 | 9 |
| 12 import '../util/io.dart'; | 10 import '../util/io.dart'; |
| 13 import '../utils.dart'; | 11 import '../utils.dart'; |
| 14 | 12 |
| 15 /// An interactive console for taking user commands. | 13 /// An interactive console for taking user commands. |
| 16 class Console { | 14 class Console { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 final String name; | 109 final String name; |
| 112 | 110 |
| 113 /// The single-line description of the command. | 111 /// The single-line description of the command. |
| 114 final String description; | 112 final String description; |
| 115 | 113 |
| 116 /// The callback to run when the command is invoked. | 114 /// The callback to run when the command is invoked. |
| 117 final Function body; | 115 final Function body; |
| 118 | 116 |
| 119 _Command(this.name, this.description, this.body); | 117 _Command(this.name, this.description, this.body); |
| 120 } | 118 } |
| OLD | NEW |