Merge branch 'master' into cli_output_updates
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eaeffde..f9b6c00 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## unreleased
+
+- Updated to the output for indeterminate progress
+
## 0.1.0
- Use the new `Platform.resolvedExecutable` API to locate the SDK
diff --git a/lib/cli_logging.dart b/lib/cli_logging.dart
index a5fa6d6..66e51aa 100644
--- a/lib/cli_logging.dart
+++ b/lib/cli_logging.dart
@@ -201,15 +201,17 @@
bool showTiming: false}) {
String char = kAnimationItems[_index % kAnimationItems.length];
if (isFinal || cancelled) {
- char = ' ';
+ char = '';
}
io.stdout.write('${ansi.backspace}${char}');
if (isFinal || cancelled) {
if (message != null) {
- io.stdout.write(message);
+ io.stdout.write(message.isEmpty ? ' ' : message);
} else if (showTiming) {
String time = (elapsed.inMilliseconds / 1000.0).toStringAsFixed(1);
io.stdout.write('${time}s');
+ } else {
+ io.stdout.write(' ');
}
io.stdout.writeln();
}