OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015, the Fletch 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.md file. | |
4 | |
5 library fletchc.verbs.x_upgrade_verb; | |
wibling
2015/11/10 12:46:34
NIT: x_upgrade -> x_discover
Søren Gjesse
2015/11/10 15:55:11
Done.
| |
6 | |
7 import 'infrastructure.dart'; | |
8 | |
9 import 'documentation.dart' show | |
10 discoverDocumentation; | |
11 | |
12 import '../driver/developer.dart' show | |
13 discoverDevices; | |
14 | |
15 const Action discoverAction = | |
16 const Action(discover, discoverDocumentation); | |
17 | |
18 Future<int> discover(AnalyzedSentence sentence, VerbContext context) async { | |
19 await discoverDevices(); | |
20 return 1; | |
21 } | |
OLD | NEW |