CLI update

This commit is contained in:
leedongmyung[desktop] 2023-11-18 15:10:50 +09:00
parent 60f1d6298e
commit b07fb2dbd7
2 changed files with 3 additions and 4 deletions

View file

@ -219,7 +219,7 @@ class _PrinterWindows extends Printer {
var c = Completer();
StringBuffer message = StringBuffer();
message.writeln('@echo off\r');
message.writeln('chcp 65001');
message.writeln('chcp 65001 > nul');
message.writeln('setlocal\r');
message.writeln('call :setESC\r');

View file

@ -84,6 +84,7 @@ class Application {
}
} on Exception catch (e) {
await CLI.printString(e.toString(), color: Color.red);
await printBuildStep('Build Failed', color: Color.red);
return;
}
@ -125,13 +126,11 @@ class Application {
}
Future printBuildStep(String name, {Color? color}) async {
var colorIn = color ?? Color.green;
var message =
'''************************************************************************************
* $name
************************************************************************************''';
await CLI.printString(message, color: colorIn);
await CLI.printString(message, color: color ?? Color.green);
return simpleFuture;
}