From 79df8d332f2c8e026042a26fc3d7461fb46668ac Mon Sep 17 00:00:00 2001 From: Toki Date: Sat, 25 Nov 2023 23:30:18 +0900 Subject: [PATCH] sync with mac --- assets/pipeline-test.yaml | 4 ++-- lib/oto/pipeline/pipeline_if.dart | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/pipeline-test.yaml b/assets/pipeline-test.yaml index 19c6171..71ce67d 100644 --- a/assets/pipeline-test.yaml +++ b/assets/pipeline-test.yaml @@ -5,13 +5,13 @@ property: pipeline: id: main workflow: - - exe: git + - async: git - exe: git-rev - exe: git-count - exe: json-reader #동기식 실행, 해당 수행이 끝나야만 다음 스텝실행, command일경우 해당 id 기입 - - async: appData + - exe: appData #비동기식 실행, 해당 수행이 완료됨과 관계없이 실행하고 다음 스텝을 실행한다 # - exe: buildDart diff --git a/lib/oto/pipeline/pipeline_if.dart b/lib/oto/pipeline/pipeline_if.dart index 0f977bd..fd42743 100644 --- a/lib/oto/pipeline/pipeline_if.dart +++ b/lib/oto/pipeline/pipeline_if.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:dart_framework/utils/system_util.dart'; import 'package:oto_cli/cli/cli.dart'; import 'package:oto_cli/oto/commands/command.dart'; @@ -58,8 +60,10 @@ class PipelineIf extends PipelineExecutor { @override Future execute() async { var result = checkCondition(_data.condition!); - await CLI.println('^"[IF] (${result.conditionValue}) : ${result.result}"', - color: Color.magentaStrong); + var quotes = Platform.isWindows ? '^"' : ''; + var printStr = + '$quotes[IF] (${result.conditionValue}) : ${result.result}$quotes'; + await CLI.println(printStr, color: Color.magentaStrong); if (result.result) { await _pipelineTrue?.execute(); } else {