| 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..affd5c6ddaa0b0bb9f9a132803070ee9b846194e
|
| --- /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_discover_verb;
|
| +
|
| +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;
|
| +}
|
|
|