@@ -76,9 +76,9 @@ Future<String?> exportCode({
76
76
String ? commitHash,
77
77
bool exportAsDebug = false ,
78
78
}) async {
79
- stdout .write ('Downloading code with the FlutterFlow CLI...\n ' );
80
- stdout .write ('You are exporting project $projectId .\n ' );
81
- stdout .write (
79
+ stderr .write ('Downloading code with the FlutterFlow CLI...\n ' );
80
+ stderr .write ('You are exporting project $projectId .\n ' );
81
+ stderr .write (
82
82
'${branchName != null ? 'Branch: $branchName ' : '' }${environmentName != null ? 'Environment: $environmentName ' : '' }${commitHash != null ? 'Commit: $commitHash ' : '' }\n ' );
83
83
if (exportAsDebug && exportAsModule) {
84
84
throw 'Cannot export as module and debug at the same time.' ;
@@ -110,8 +110,6 @@ Future<String?> exportCode({
110
110
extractArchiveToCurrentDirectory (projectFolder, destinationPath);
111
111
}
112
112
113
- stdout.write ('Successfully downloaded the code!\n ' );
114
-
115
113
folderName = projectFolder.first.name;
116
114
117
115
final postCodeGenerationFutures = < Future > [
@@ -136,7 +134,7 @@ Future<String?> exportCode({
136
134
} finally {
137
135
client.close ();
138
136
}
139
- stdout .write ('All done!\n ' );
137
+ stderr .write ('All done!\n ' );
140
138
return folderName;
141
139
}
142
140
@@ -268,7 +266,7 @@ Future _downloadAssets({
268
266
stderr.write ('Error downloading asset $path . This is probably fine.\n ' );
269
267
}
270
268
});
271
- stdout .write ('Downloading assets...\n ' );
269
+ stderr .write ('Downloading assets...\n ' );
272
270
await Future .wait (futures);
273
271
}
274
272
@@ -287,7 +285,7 @@ Future _runFix({
287
285
final workingDirectory = unzipToParentFolder
288
286
? path_util.join (destinationPath, directory)
289
287
: destinationPath;
290
- stdout .write ('Running flutter pub get...\n ' );
288
+ stderr .write ('Running flutter pub get...\n ' );
291
289
final pubGetResult = await Process .run (
292
290
'flutter' ,
293
291
['pub' , 'get' ],
@@ -301,7 +299,7 @@ Future _runFix({
301
299
'"flutter pub get" failed with code ${pubGetResult .exitCode }, stderr:\n ${pubGetResult .stderr }\n ' );
302
300
return ;
303
301
}
304
- stdout .write ('Running dart fix...\n ' );
302
+ stderr .write ('Running dart fix...\n ' );
305
303
final fixDirectory = unzipToParentFolder ? directory : '' ;
306
304
final dartFixResult = await Process .run (
307
305
'dart' ,
@@ -373,7 +371,7 @@ Future firebaseDeploy({
373
371
);
374
372
}
375
373
376
- stdout .write ('Initializing firebase...\n ' );
374
+ stderr .write ('Initializing firebase...\n ' );
377
375
await Process .run (
378
376
'firebase' ,
379
377
['use' , firebaseProjectId],
0 commit comments