test
This commit is contained in:
parent
30221e7579
commit
cc2741da19
3 changed files with 23 additions and 10 deletions
|
|
@ -3,7 +3,7 @@ common:
|
|||
workspace: "."
|
||||
|
||||
commands:
|
||||
### Version <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
### Version 쓰기
|
||||
- command: CreateAppData
|
||||
param:
|
||||
scm: Git
|
||||
|
|
@ -12,13 +12,13 @@ commands:
|
|||
returnVersion: "<!common.version>"
|
||||
returnHash: "<!common.hash>"
|
||||
|
||||
### <EFBFBD><EFBFBD><EFBFBD>డ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
### 실행가능한 파일로 빌드
|
||||
- command: BuildDartCompile
|
||||
param:
|
||||
targetDartFile: "./bin/main.dart"
|
||||
buildFileName: oto_cli
|
||||
|
||||
### <EFBFBD><EFBFBD><EFBFBD><EFBFBD> zip <20><><EFBFBD><EFBFBD> <20><><EFBFBD>·<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
### 최종 zip 파일 형태로 저장
|
||||
- command: Zip
|
||||
param:
|
||||
zipFile: "<!common.workspace>/release/oto_win_v<!common.version>.zip"
|
||||
|
|
|
|||
|
|
@ -120,6 +120,14 @@ class CLI {
|
|||
return simpleFuture;
|
||||
}
|
||||
|
||||
static Future printBuffer(StringBuffer buffer) async {
|
||||
return await print(buffer.toString().split('\n'));
|
||||
}
|
||||
|
||||
static Future printString(String str) async {
|
||||
return await print(str.split('\n'));
|
||||
}
|
||||
|
||||
late CLIConfig config;
|
||||
late CommandManager _commandManager;
|
||||
|
||||
|
|
@ -208,12 +216,12 @@ class _PrinterWindows extends Printer {
|
|||
message.writeln('call :setESC');
|
||||
|
||||
for (var item in printList) {
|
||||
if (item.isEmpty) {
|
||||
if (item.trim().isEmpty) {
|
||||
message.writeln('echo.');
|
||||
} else {
|
||||
item = item
|
||||
.replaceAll('<', '^<')
|
||||
.replaceAll('>', '^>')
|
||||
// .replaceAll('<', '^<')
|
||||
// .replaceAll('>', '^>')
|
||||
// .replaceAll('[', '^[')
|
||||
.replaceAll(']', '^]')
|
||||
.replaceAll('|', '^|');
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import 'dart:convert';
|
|||
import 'dart:io';
|
||||
import 'package:dart_framework/platform/process.dart';
|
||||
import 'package:dart_framework/utils/system_util.dart';
|
||||
import 'package:oto_cli/cli/cli.dart';
|
||||
import 'package:oto_cli/oto/command.dart';
|
||||
import 'package:oto_cli/oto/data/data.dart';
|
||||
import 'package:oto_cli/oto/data/jenkins_data.dart';
|
||||
|
|
@ -69,12 +70,18 @@ class Application {
|
|||
print(jsonStr);
|
||||
}
|
||||
_jenkinsData = DataJenkins.fromJson(jenkinsMap!);
|
||||
buildMap = getMapFromYaml(await getBuildData());
|
||||
|
||||
var content = await getBuildData();
|
||||
CLI.printString(CLI.style(content, color: Color.green));
|
||||
buildMap = getMapFromYaml(content);
|
||||
break;
|
||||
|
||||
case BuildType.file:
|
||||
_jenkinsData = DataJenkins.fromJson(FileData.jenkinsMap!);
|
||||
buildMap = getMapFromYaml(yamlContent!);
|
||||
|
||||
var content = yamlContent!;
|
||||
CLI.printString(CLI.style(content, color: Color.green));
|
||||
buildMap = getMapFromYaml(content);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -161,8 +168,6 @@ class Application {
|
|||
} else {
|
||||
content = await file.readAsString();
|
||||
}
|
||||
print(content);
|
||||
|
||||
c.complete(content);
|
||||
return c.future;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue