sync with mac

This commit is contained in:
Toki 2023-11-25 23:30:18 +09:00
parent 4add67998b
commit 79df8d332f
2 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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 {