diff --git a/documentation/Functions.md b/documentation/Functions.md index a9eefb1a..49b93ea6 100644 --- a/documentation/Functions.md +++ b/documentation/Functions.md @@ -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 @@ -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. -*** +*** \ No newline at end of file diff --git a/runners/console/index.ts b/runners/console/index.ts index 04feb102..ae6a4341 100644 --- a/runners/console/index.ts +++ b/runners/console/index.ts @@ -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; @@ -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)