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

Unified Diff: sky/sdk/packages/sky/bin/init.dart

Issue 1136503002: Create wrapper script around mojom's generate.dart in the Sky package. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 7 months 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
« no previous file with comments | « sky/sdk/README.md ('k') | sky/sdk/packages/sky/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/packages/sky/bin/init.dart
diff --git a/sky/sdk/packages/sky/bin/init.dart b/sky/sdk/packages/sky/bin/init.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7616fec98d38a896d631d8225d1cbf3504992e97
--- /dev/null
+++ b/sky/sdk/packages/sky/bin/init.dart
@@ -0,0 +1,17 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/*
+* This script should be invoked via 'pub run' after 'pub get':
+* $ pub run sky:init
+* NOTE: The 'dart' executable must be on your $PATH for this script to work.
+*/
+
+import 'dart:io';
+
+main(List<String> arguments) {
+ ProcessResult result = Process.runSync('dart', ['-p', 'packages', 'packages/mojom/generate.dart']);
+ stdout.write(result.stdout);
+ stderr.write(result.stderr);
+}
« no previous file with comments | « sky/sdk/README.md ('k') | sky/sdk/packages/sky/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698