Skip to content

Commit f86abd5

Browse files
committed
Wrap main() so it can be tested in an easier way
The idea is to test exporting code using Dart test runner, it will make it easier to write cross platform integration tests for the various command line options.
1 parent 4891c69 commit f86abd5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/flutterflow_cli.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:flutterflow_cli/src/flutterflow_api_client.dart';
55

66
const kDefaultEndpoint = 'https://api.flutterflow.io/v1';
77

8-
void main(List<String> args) async {
8+
Future<void> appMain(List<String> args) async {
99
final parsedArguments = _parseArgs(args);
1010

1111
final token =
@@ -181,3 +181,7 @@ ArgResults _parseArgs(List<String> args) {
181181

182182
return parsed;
183183
}
184+
185+
void main(List<String> args) async {
186+
await appMain(args);
187+
}

0 commit comments

Comments
 (0)