Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/pigeon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.25

* Moved exit command to bin/ from lib/

## 0.1.24

* Moved logic from bin/ to lib/ to help customers wrap up the behavior.
Expand Down
3 changes: 2 additions & 1 deletion packages/pigeon/bin/pigeon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

// @dart = 2.2

import 'dart:io';
import 'package:pigeon/pigeon_cl.dart';

Future<void> main(List<String> args) async {
await runCommandLine(args);
exit(await runCommandLine(args));
}
2 changes: 1 addition & 1 deletion packages/pigeon/lib/generator_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'dart:mirrors';
import 'ast.dart';

/// The current version of pigeon. This must match the version in pubspec.yaml.
const String pigeonVersion = '0.2.0';
const String pigeonVersion = '0.2.1';

/// Read all the content from [stdin] to a String.
String readStdin() {
Expand Down
4 changes: 2 additions & 2 deletions packages/pigeon/lib/pigeon_cl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ String _posixRelative(String input, {required String from}) {
/// This is the main entrypoint for the command-line tool. [args] are the
/// commmand line arguments and there is an optional [packageConfig] to
/// accomodate users that want to integrate pigeon with other build systems.
Future<void> runCommandLine(List<String> args, {Uri? packageConfig}) async {
Future<int> runCommandLine(List<String> args, {Uri? packageConfig}) async {
final PigeonOptions opts = Pigeon.parseArgs(args);
final Directory tempDir = Directory.systemTemp.createTempSync(
'flutter_pigeon.',
Expand Down Expand Up @@ -71,5 +71,5 @@ void main(List<String> args, SendPort sendPort) async {
});
final int exitCode = await completer.future;
tempDir.deleteSync(recursive: true);
exit(exitCode);
return exitCode;
}
2 changes: 1 addition & 1 deletion packages/pigeon/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pigeon
version: 0.2.0 # This must match the version in lib/generator_tools.dart
version: 0.2.1 # This must match the version in lib/generator_tools.dart
description: Code generator tool to make communication between Flutter and the host platform type-safe and easier.
homepage: https://github.com/flutter/packages/tree/master/packages/pigeon
dependencies:
Expand Down