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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user