From f20ffb16498b81e4f0779e23e7d419b0c72a38dd Mon Sep 17 00:00:00 2001 From: Toki Date: Tue, 31 Dec 2024 09:12:05 +0900 Subject: [PATCH] test --- lib/oto/commands/shell/shell.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/oto/commands/shell/shell.dart b/lib/oto/commands/shell/shell.dart index 8ca96c3..9311e2e 100644 --- a/lib/oto/commands/shell/shell.dart +++ b/lib/oto/commands/shell/shell.dart @@ -15,12 +15,15 @@ class Shell extends Command { shell.write(' && $item'); } - if(data.setMessage == null) { - var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType); + if (data.setMessage == null) { + var process = await ProcessExecutor.start(shell, + logHandler: Application.logWithType); return await completeProcess(process, command); } else { - var process = await ProcessExecutor.run(shell, logHandler: Application.logWithType); + var process = + await ProcessExecutor.run(shell, logHandler: Application.logWithType); var str = process.stdout.toString(); + print('====================> $str'); var length = str.length; str = str.substring(0, length - 1); await setProperty(data.setMessage!, str); @@ -40,7 +43,8 @@ class ShellFile extends Command { } else { shell.writeln('source $path'); } - var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType); + var process = + await ProcessExecutor.start(shell, logHandler: Application.logWithType); return await completeProcess(process, command); }