From 000b2e1f105c03e1abf7ed1d4ab888a10c87f668 Mon Sep 17 00:00:00 2001 From: "leedongmyung[desktop]" Date: Sat, 18 Nov 2023 20:53:56 +0900 Subject: [PATCH] code refactoring --- lib/platform/process.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/platform/process.dart b/lib/platform/process.dart index ea6f298..a3b6fef 100644 --- a/lib/platform/process.dart +++ b/lib/platform/process.dart @@ -100,10 +100,10 @@ class ProcessData { class ProcessExecutor { static Future startExe(String exe, List args, - {String? workspace, bool? enableStdout, bool? enableStderr}) async { + {String? workspace, bool? printStdout, bool? printStderr}) async { var c = Completer(); var arg = '$exe ${args.join(' ')}'; - var processData = ProcessData(enableStdout ?? true, enableStderr ?? true); + var processData = ProcessData(printStdout ?? true, printStderr ?? true); if (Platform.isMacOS || Platform.isWindows) { workspace = workspace ?? Directory.systemTemp.path; print('Execute Shell: $arg'); @@ -121,10 +121,10 @@ class ProcessExecutor { } static Future start(StringBuffer shell, - {String? workspace, bool? enableStdout, bool? enableStderr}) async { + {String? workspace, bool? printStdout, bool? printStderr}) async { var c = Completer(); try { - var processData = ProcessData(enableStdout ?? true, enableStderr ?? true); + var processData = ProcessData(printStdout ?? true, printStderr ?? true); if (Platform.isMacOS || Platform.isLinux) { workspace = workspace ?? Directory.systemTemp.path; var file = File('$workspace/$tempFileName');