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

Side by Side Diff: prepend.dart

Issue 66383002: Update Dart protoc plugin to latest SDK (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | pubspec.yaml » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 import 'dart:io'; 2 import 'dart:io';
3 3
4 main() { 4 main(List<String> arguments) {
5 final fileName = new Options().arguments.first; 5 final fileName = arguments.first;
6 final file = new File(fileName); 6 final file = new File(fileName);
7 final content = file.readAsStringSync(); 7 final content = file.readAsStringSync();
8 file.writeAsStringSync('#!/usr/bin/env dart\n$content'); 8 file.writeAsStringSync('#!/usr/bin/env dart\n$content');
9 // For development use the line below instead of the one above to 9 // For development use the line below instead of the one above to
10 // avoid using the dart2dart code. 10 // avoid using the dart2dart code.
11 // file.writeAsStringSync('#!/bin/bash\ndart bin/protoc_plugin.dart'); 11 // file.writeAsStringSync('#!/bin/bash\ndart bin/protoc_plugin.dart');
12 } 12 }
OLDNEW
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698