This commit is contained in:
leedongmyung[desktop] 2023-11-16 20:23:16 +09:00
parent 121cf15789
commit 548dac03a5
2 changed files with 7 additions and 8 deletions

View file

@ -220,8 +220,8 @@ class _PrinterWindows extends Printer {
message.writeln('echo.');
} else {
item = item
// .replaceAll('<', '^<')
// .replaceAll('>', '^>')
.replaceAll('<', '^<')
.replaceAll('>', '^>')
// .replaceAll('[', '^[')
.replaceAll(']', '^]')
.replaceAll('|', '^|');

View file

@ -72,7 +72,7 @@ class Application {
_jenkinsData = DataJenkins.fromJson(jenkinsMap!);
var content = await getBuildData();
await CLI.print(composeANSIPrint(content, Color.green));
await composeANSIPrint(content, Color.green);
buildMap = getMapFromYaml(content);
break;
@ -80,7 +80,7 @@ class Application {
_jenkinsData = DataJenkins.fromJson(FileData.jenkinsMap!);
var content = yamlContent!;
CLI.printString(CLI.style(content, color: Color.green));
await CLI.printString(CLI.style(content, color: Color.green));
buildMap = getMapFromYaml(content);
break;
}
@ -88,13 +88,12 @@ class Application {
await execute(buildMap!);
}
List<String> composeANSIPrint(String value, Color color) {
Future composeANSIPrint(String value, Color color) async {
var list = value.split('\n');
List<String> listNew = [];
for (var item in list) {
listNew.add(CLI.style(item, color: color));
await CLI.print([CLI.style(item, color: color)]);
}
return listNew;
return simpleFuture;
}
Future setKorean() async {