Refactor flutter command exit code - part 3 of 3 (#6838)

* Remove the workaround that pinned args to v0.13.6
This reverts most of the changes in commit 6331b6c8b5
* throw exception if exit code is not an integer
* rework command infrastructure to throw ToolExit when non-zero exitCode
* convert commands to return Future<Null>
* cleanup remaining commands to use throwToolExit for non-zero exit code
* remove isUnusual exception message
* add type annotations for updated args package
This commit is contained in:
Dan Rubel
2016-11-14 14:21:30 -05:00
committed by GitHub
parent ece851d5cd
commit 34e466f1fd
63 changed files with 167 additions and 348 deletions

View File

@@ -1,11 +1,5 @@
name: flutter_gallery
dependencies:
# version 0.13.6+1 does not return the value from the command
# causing flutter tools to always have exit code 0
# see https://github.com/flutter/flutter/issues/6766
args: 0.13.6
collection: '>=1.9.1 <2.0.0'
intl: '>=0.14.0 <0.15.0'
string_scanner: ^1.0.0

View File

@@ -1,12 +1,6 @@
name: hello_services
dependencies:
# version 0.13.6+1 does not return the value from the command
# causing flutter tools to always have exit code 0
# see https://github.com/flutter/flutter/issues/6766
args: 0.13.6
flutter:
sdk: flutter

View File

@@ -1,12 +1,6 @@
name: hello_world
dependencies:
# version 0.13.6+1 does not return the value from the command
# causing flutter tools to always have exit code 0
# see https://github.com/flutter/flutter/issues/6766
args: 0.13.6
flutter:
sdk: flutter

View File

@@ -1,11 +1,5 @@
name: flutter_examples_layers
dependencies:
# version 0.13.6+1 does not return the value from the command
# causing flutter tools to always have exit code 0
# see https://github.com/flutter/flutter/issues/6766
args: 0.13.6
flutter:
sdk: flutter

View File

@@ -1,11 +1,5 @@
name: stocks
dependencies:
# version 0.13.6+1 does not return the value from the command
# causing flutter tools to always have exit code 0
# see https://github.com/flutter/flutter/issues/6766
args: 0.13.6
flutter:
sdk: flutter
intl: '>=0.14.0 <0.15.0'