Skip to content

Commit

Permalink
Organize CLI output text
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Sep 17, 2024
1 parent bef8b02 commit 640df00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flutter_package/bin/src/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ please refer to Rinf's [documentation](https://rinf.cunarist.com).

await generateMessageCode(silent: true, messageConfig: messageConfig);

print('🎉 Rust template is now ready! 🎉');
print('Rust template is now ready 🎉');
}

Future<void> copyDirectory(Uri source, Uri destination) async {
Expand Down Expand Up @@ -282,7 +282,7 @@ Future<void> buildWebassembly(bool isReleaseMode) async {
fillingBar.desc = 'Saved `.wasm` and `.js` files to `$subPath`';
fillingBar.increment();

fillingBar.desc = '🎉 Webassembly module is now ready! 🎉';
fillingBar.desc = 'Webassembly module is now ready 🎉';
fillingBar.increment();

// Guide the developer how to run Flutter web server with web headers.
Expand Down
2 changes: 1 addition & 1 deletion flutter_package/bin/src/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void assignRustSignal(int messageId, Uint8List messageBytes, Uint8List binary) {
fillingBar.increment();

// Notify that it's done
fillingBar.desc = '🎉 Message code in Dart and Rust is now ready! 🎉';
fillingBar.desc = 'Message code in Dart and Rust is now ready 🎉';
fillingBar.increment();
}

Expand Down
4 changes: 3 additions & 1 deletion flutter_package/bin/src/progress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ class ProgressBar {
_clock.start();
scheduleMicrotask(autoRender);
}
print('');
if (!silent) {
print('');
}
_render();
}

Expand Down

0 comments on commit 640df00

Please sign in to comment.