Skip to content

Commit 6d1a141

Browse files
committed
Add more logging
1 parent 70a8643 commit 6d1a141

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.23
2+
3+
- Add more logging.
4+
15
## 0.0.22
26

37
- Add `--project-environment` option.

lib/src/flutterflow_api_client.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ Future<String?> exportCode({
7676
String? commitHash,
7777
bool exportAsDebug = false,
7878
}) async {
79+
stdout.write('Downloading code with the FlutterFlow CLI...\n');
80+
stdout.write('You are exporting project $projectId.\n');
81+
stdout.write(
82+
'${branchName != null ? 'Branch: $branchName ' : ''}${environmentName != null ? 'Environment: $environmentName ' : ''}${commitHash != null ? 'Commit: $commitHash' : ''}\n');
7983
if (exportAsDebug && exportAsModule) {
8084
throw 'Cannot export as module and debug at the same time.';
8185
}
@@ -106,6 +110,8 @@ Future<String?> exportCode({
106110
extractArchiveToCurrentDirectory(projectFolder, destinationPath);
107111
}
108112

113+
stdout.write('Successfully downloaded the code!\n');
114+
109115
folderName = projectFolder.first.name;
110116

111117
final postCodeGenerationFutures = <Future>[
@@ -130,6 +136,7 @@ Future<String?> exportCode({
130136
} finally {
131137
client.close();
132138
}
139+
stdout.write('All done!\n');
133140
return folderName;
134141
}
135142

@@ -261,6 +268,7 @@ Future _downloadAssets({
261268
stderr.write('Error downloading asset $path. This is probably fine.\n');
262269
}
263270
});
271+
stdout.write('Downloading assets...\n');
264272
await Future.wait(futures);
265273
}
266274

@@ -279,7 +287,7 @@ Future _runFix({
279287
final workingDirectory = unzipToParentFolder
280288
? path_util.join(destinationPath, directory)
281289
: destinationPath;
282-
290+
stdout.write('Running flutter pub get...\n');
283291
final pubGetResult = await Process.run(
284292
'flutter',
285293
['pub', 'get'],
@@ -293,6 +301,7 @@ Future _runFix({
293301
'"flutter pub get" failed with code ${pubGetResult.exitCode}, stderr:\n${pubGetResult.stderr}\n');
294302
return;
295303
}
304+
stdout.write('Running dart fix...\n');
296305
final fixDirectory = unzipToParentFolder ? directory : '';
297306
final dartFixResult = await Process.run(
298307
'dart',

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.22
4+
version: 0.0.23
55
homepage: https://github.com/FlutterFlow/flutterflow-cli
66
issue_tracker: https://github.com/flutterflow/flutterflow-issues
77

0 commit comments

Comments
 (0)