Chromium Code Reviews| Index: pkg/fletchc/lib/src/verbs/x_discover_verb.dart |
| diff --git a/pkg/fletchc/lib/src/verbs/x_discover_verb.dart b/pkg/fletchc/lib/src/verbs/x_discover_verb.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b661743a826be3c2489098d1a958453cd4b34a42 |
| --- /dev/null |
| +++ b/pkg/fletchc/lib/src/verbs/x_discover_verb.dart |
| @@ -0,0 +1,21 @@ |
| +// Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE.md file. |
| + |
| +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.
|
| + |
| +import 'infrastructure.dart'; |
| + |
| +import 'documentation.dart' show |
| + discoverDocumentation; |
| + |
| +import '../driver/developer.dart' show |
| + discoverDevices; |
| + |
| +const Action discoverAction = |
| + const Action(discover, discoverDocumentation); |
| + |
| +Future<int> discover(AnalyzedSentence sentence, VerbContext context) async { |
| + await discoverDevices(); |
| + return 1; |
| +} |