Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 11 additions & 1 deletion documentation/Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ installDevonfwIde(["java","mvn"], "2020.08.001")

***

### restoreDevonfwIde
#### parameter
1. The tools you want to install within the devonfw ide: string array
2. Optional: The version of the ide to install
#### example
restoreDevonfwIde(["java","mvn"], "2020.08.001")
#### details
In the Katacoda environment the installation of the devonfw IDE is executed in a startup script.
***

### installCobiGen
#### parameter
* No parameters
Expand Down Expand Up @@ -95,4 +105,4 @@ A placeholder is optional. If you do not define a placeholder, the content in th

Please try not to use custom placeholders. Keep in mind that you might want to build the project before changing them. Custom placeholders with a comment-syntax (e.g. "//PLACEHOLDER") will be removed by the console-environment and others might cause errors.

***
***
9 changes: 9 additions & 0 deletions runners/console/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export class Console extends Runner {
return result;
}


runRestoreDevonfwIde(step: Step, command: Command): RunResult {
return this.runInstallDevonfwIde(step, command);
}

runInstallCobiGen(step: Step, command: Command): RunResult {
let result = new RunResult();
result.returnCode = 0;
Expand Down Expand Up @@ -158,6 +163,10 @@ export class Console extends Runner {
}
}

async assertRestoreDevonfwIde(step: Step, command: Command, result: RunResult) {
this.assertInstallDevonfwIde(step, command, result);
}

async assertInstallCobiGen(step: Step, command: Command, result: RunResult) {
let assert = new Assertions()
.noErrorCode(result)
Expand Down