buf fixed
This commit is contained in:
parent
f8bc54fcc5
commit
b778e7d495
2 changed files with 3 additions and 4 deletions
|
|
@ -9,9 +9,7 @@ import 'package:oto_cli/cli/commands/command_exe.dart';
|
|||
|
||||
void main(List<String> arguments) async {
|
||||
Application('oto', 'com.toki-labs.oto', () {
|
||||
print(and);
|
||||
|
||||
CLI.initialize('oto', arguments,
|
||||
CLI.initialize(appName, arguments,
|
||||
[CommandTemplate(), CommandExe(), CommandScheduler()]);
|
||||
}, (error, stack) {
|
||||
print(error);
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ class DataComposerJenkins extends DataComposer {
|
|||
var process = await ProcessExecutor.start(shell, printStdout: false);
|
||||
await process.waitForExit();
|
||||
buildYaml = process.stdout.toString();
|
||||
commonData = DataCommon.fromJson(jenkinsMap);
|
||||
} else if (Platform.isWindows) {
|
||||
await Process.run('cmd', [
|
||||
'/C',
|
||||
|
|
@ -65,6 +66,7 @@ class DataComposerJenkins extends DataComposer {
|
|||
jsonStr = jsonStr.substring(jsonStr.indexOf('{'));
|
||||
jsonStr = jsonStr.replaceAll('\\', '/');
|
||||
jenkinsMap = getMapFromJson(jsonStr);
|
||||
commonData = DataCommon.fromJson(jenkinsMap!);
|
||||
buildYaml = await getBuildData();
|
||||
} else {
|
||||
enable = false;
|
||||
|
|
@ -76,7 +78,6 @@ class DataComposerJenkins extends DataComposer {
|
|||
await printer('Jenkins Variables', Color.green);
|
||||
Application.log(jsonStr);
|
||||
}
|
||||
commonData = DataCommon.fromJson(jenkinsMap!);
|
||||
|
||||
return simpleFuture;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue