From 1d23272ea3c5ec1c18013a35b0e0fe90e6079bfa Mon Sep 17 00:00:00 2001 From: "leedongmyung[desktop]" Date: Sun, 5 Nov 2023 21:24:28 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EB=9D=BC=EB=A7=A4=ED=84=B0=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cli/commands/command_exe.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/cli/commands/command_exe.dart b/lib/cli/commands/command_exe.dart index 69462db..f66d77d 100644 --- a/lib/cli/commands/command_exe.dart +++ b/lib/cli/commands/command_exe.dart @@ -18,7 +18,8 @@ class CommandExe extends CommandBase { @override Future execute(List parameters) { - for (var item in parameters) { + for (var i = 0; i < parameters.length; ++i) { + var item = parameters[i]; if (item.startsWith('-j')) { Application.instance.build(BuildType.jenkins); break; @@ -27,7 +28,13 @@ class CommandExe extends CommandBase { Application.instance.build(BuildType.test); } if (item.startsWith('-f')) { - startYaml(item.replaceFirst('-f', '').trimLeft()); + var file = ''; + if (parameters.length > i + 1) { + file = parameters[i + 1]; + } else { + file = item.replaceFirst('-f', '').trimLeft(); + } + startYaml(file); break; } }