CLI update
This commit is contained in:
parent
60f1d6298e
commit
b07fb2dbd7
2 changed files with 3 additions and 4 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue