test
This commit is contained in:
parent
121cf15789
commit
548dac03a5
2 changed files with 7 additions and 8 deletions
|
|
@ -220,8 +220,8 @@ class _PrinterWindows extends Printer {
|
|||
message.writeln('echo.');
|
||||
} else {
|
||||
item = item
|
||||
// .replaceAll('<', '^<')
|
||||
// .replaceAll('>', '^>')
|
||||
.replaceAll('<', '^<')
|
||||
.replaceAll('>', '^>')
|
||||
// .replaceAll('[', '^[')
|
||||
.replaceAll(']', '^]')
|
||||
.replaceAll('|', '^|');
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue