테스트용 pipeline 수정

This commit is contained in:
Toki 2024-12-30 18:10:27 +09:00
parent 58e9e393f2
commit 99145a43b6
2 changed files with 40 additions and 5 deletions

View file

@ -0,0 +1,34 @@
---
property:
workspace: .
pipeline:
id: main
workflow:
- exe: createApp
- exe: shell
- exe: buildDart
commands:
### Version 쓰기
- command: CreateAppData
id: createApp
param:
scm: Git
name: OTO
relativeAssetPath: assets/data
setVersion: <@property.version>
setHash: <@property.hash>
- command: Shell
id: shell
param:
commands:
- source ~/.bash_profile
### 실행가능한 파일로 빌드
- command: BuildDartCompile
id: buildDart
param:
targetDartFile: "./bin/main.dart"
buildFileName: oto

View file

@ -35,17 +35,18 @@ class CommandManager {
}
if (!printHelp) {
if(parameters.isEmpty) {
if (parameters.isEmpty) {
commandItem.printHelp();
} else {
await CLI.println('Execute command: $command$argStr',
color: Color.green);
color: Color.green);
try {
await commandItem.execute(parameters);
} on Exception catch(e, stacktace) {
await commandItem.execute(parameters);
} on Exception catch (e) {
print('');
var message = e.toString().replaceAll('Exception:', '');
await CLI.println('${CLI.style('Error:', background: Color.red)} $message');
await CLI.println(
'${CLI.style('Error:', background: Color.red)} $message');
print('');
}
}