This commit is contained in:
Toki 2024-12-31 11:24:34 +09:00
parent c18696d9aa
commit 25f46dc4e8
2 changed files with 7 additions and 11 deletions

View file

@ -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<String> 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<String> 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';

View file

@ -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);
}