diff --git a/lib/cli/cli.dart b/lib/cli/cli.dart index 7a31244..ba687cd 100644 --- a/lib/cli/cli.dart +++ b/lib/cli/cli.dart @@ -39,7 +39,7 @@ class CLIConfig { CLIConfig(this.serviceName, this.arguments, this.commands) { var fileName = path.basename(Platform.resolvedExecutable); fileName = fileName.replaceAll(path.extension(fileName), ''); - if(fileName == 'dart') { + if (fileName == 'dart') { //debug fileName = 'dart bin/main.dart'; } @@ -126,7 +126,7 @@ class CLI { static Future print(List printList, {Color? color, Color? background}) async { - if(_logFunc == null) { + if (_logFunc == null) { if (color != null || background != null) { for (var i = 0; i < printList.length; ++i) { printList[i] = @@ -311,16 +311,12 @@ class _PrinterUnix extends Printer { Future printCLI(List printList) async { var c = Completer(); StringBuffer message = StringBuffer(); - if (printList.length == 1) { - message.write('echo -n "${printList.first}"'); - } else { - message.writeln('echo -e "'); + message.writeln('echo -e "'); - for (var item in printList) { - message.writeln(item); - } - message.write('"'); + for (var item in printList) { + message.writeln(item); } + message.write('"'); var temp = await getTempFile(message.toString(), 'sh'); var shellExe = Platform.isMacOS ? 'zsh' : 'bash'; diff --git a/lib/oto/application.dart b/lib/oto/application.dart index c926ecc..6bba114 100644 --- a/lib/oto/application.dart +++ b/lib/oto/application.dart @@ -84,7 +84,7 @@ class Application { if (_logEnable) { await CLI.printString( '$enter********************************* Build Data *************************************', - color: Color.green); + color: Color.magenta); if (composer != null) log(composer.buildYaml); }