Skip to content

Commit 8d101e3

Browse files
committed
Occasionally suggest using flag when it's not passed
1 parent 344cb15 commit 8d101e3

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.30
2+
3+
- Occasionally suggest using `--fix` flag when it's not passed.
4+
15
## 0.0.29
26

37
- Add support for download_url.

bin/flutterflow_cli.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:io';
2+
import 'dart:math';
23

34
import 'package:args/args.dart';
45
import 'package:flutterflow_cli/src/flutterflow_api_client.dart';
@@ -60,6 +61,14 @@ Future<void> appMain(List<String> args) async {
6061
exportAsDebug: parsedArguments.command!['as-debug'],
6162
environmentName: parsedArguments.command!['project-environment'],
6263
);
64+
if (!parsedArguments.command!['fix'] && Random().nextDouble() < 0.2) {
65+
print(
66+
'\nTip: Add --fix to automatically apply dart fix, which applies '
67+
'recommended lint fixes for cleaner, more idiomatic, and '
68+
'potentially more performant Dart code. Note: this makes '
69+
'the export slower.',
70+
);
71+
}
6372
break;
6473
case 'deploy-firebase':
6574
await firebaseDeploy(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutterflow_cli
22
description: >-
33
Command-line client for FlutterFlow. Export code from FlutterFlow projects.
4-
version: 0.0.29
4+
version: 0.0.30
55
homepage: https://github.com/FlutterFlow/flutterflow-cli
66
issue_tracker: https://github.com/flutterflow/flutterflow-issues
77

0 commit comments

Comments
 (0)