fix to showing a progress display for long tasks (#3265)

This commit is contained in:
Devon Carew 2016-04-12 08:39:24 -07:00
parent 64a5007126
commit b4173e20d4
3 changed files with 5 additions and 5 deletions

View file

@ -243,7 +243,7 @@ class _AnsiStatus extends Status {
double seconds = stopwatch.elapsedMilliseconds / 1000.0;
print('\b\b\b\b${seconds.toStringAsFixed(1)}s');
} else {
print('\b');
print('\b ');
}
timer.cancel();
@ -255,7 +255,7 @@ class _AnsiStatus extends Status {
return;
live = false;
print('\b');
print('\b ');
timer.cancel();
}
}

View file

@ -18,7 +18,7 @@ class PrecacheCommand extends Command {
@override
Future<int> run() async {
if (cache.isUpToDate())
printStatus('All up-to-date.');
printStatus('Already up-to-date.');
else
await cache.updateAll();

View file

@ -196,8 +196,8 @@ class FlutterCommandRunner extends CommandRunner {
if (globalResults['verbose'])
context[Logger] = new VerboseLogger();
if (!globalResults['color'])
logger.supportsColor = false;
if (globalResults.wasParsed('color'))
logger.supportsColor = globalResults['color'];
// we must set ArtifactStore.flutterRoot early because other features use it
// (e.g. enginePath's initialiser uses it)