Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: pkg/fletchc/lib/src/verbs/x_discover_verb.dart

Issue 1422853009: Add mDNS discovery to the Fletch compiler (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+}
« pkg/fletchc/lib/src/driver/developer.dart ('K') | « pkg/fletchc/lib/src/verbs/documentation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698