OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 import 'package:protoc_plugin/bazel.dart'; | 7 import 'package:protoc_plugin/bazel.dart'; |
8 import 'package:protoc_plugin/protoc.dart'; | 8 import 'package:protoc_plugin/protoc.dart'; |
9 | 9 |
10 void main() { | 10 void main() { |
11 var packages = {}; | 11 var packages = <String, BazelPackage>{}; |
12 new CodeGenerator(stdin, stdout).generate( | 12 new CodeGenerator(stdin, stdout).generate( |
13 optionParsers: {bazelOptionId: new BazelOptionParser(packages)}, | 13 optionParsers: {bazelOptionId: new BazelOptionParser(packages)}, |
14 config: new BazelOutputConfiguration(packages)); | 14 config: new BazelOutputConfiguration(packages)); |
15 } | 15 } |
OLD | NEW |