Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions runners/console/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,17 @@ export class Console extends Runner {
}

runCobiGenJava(step: Step, command: Command): RunResult {
return null;
let result = new RunResult();
result.returnCode = 0;

let workspaceDir = path.join(this.getWorkingDirectory(), "devonfw", "workspaces", "main");
if(this.platform == ConsolePlatform.WINDOWS) {
this.executeCommandSync("devon cobigen generate " + command.parameters[0], workspaceDir, result, command.parameters[1].toString());
} else {
this.executeCommandSync("~/.devon/devon cobigen generate " + command.parameters[0], workspaceDir, result, command.parameters[1].toString());
}

return result;
}

async assertInstallDevonfwIde(step: Step, command: Command, result: RunResult) {
Expand Down Expand Up @@ -153,7 +163,10 @@ export class Console extends Runner {
}

async assertCobiGenJava(step: Step, command: Command, result: RunResult) {
console.log("there is no assertion yet for the cobiGenJava command");
new Assertions()
.noErrorCode(result)
.noException(result)
.fileExits(path.join(this.getWorkingDirectory(), "devonfw", "workspaces", "main", command.parameters[0]));
}

async assertCreateDevon4jProject(step: Step, command: Command, result: RunResult) {
Expand Down