Skip to content

Commit 1d19ff1

Browse files
Merge pull request #82 from denise-khuu/feature/consolerestoredevonfwide
feature/consolerestoredevonfwide
2 parents 34430d7 + 4da72a5 commit 1d19ff1

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

documentation/Functions.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ installDevonfwIde(["java","mvn"], "2020.08.001")
1818

1919
***
2020

21+
### restoreDevonfwIde
22+
#### parameter
23+
1. The tools you want to install within the devonfw ide: string array
24+
2. Optional: The version of the ide to install
25+
#### example
26+
restoreDevonfwIde(["java","mvn"], "2020.08.001")
27+
#### details
28+
In the Katacoda environment the installation of the devonfw IDE is executed in a startup script.
29+
***
30+
2131
### installCobiGen
2232
#### parameter
2333
* No parameters
@@ -95,4 +105,4 @@ A placeholder is optional. If you do not define a placeholder, the content in th
95105

96106
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.
97107

98-
***
108+
***

runners/console/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ export class Console extends Runner {
5252
return result;
5353
}
5454

55+
56+
runRestoreDevonfwIde(step: Step, command: Command): RunResult {
57+
return this.runInstallDevonfwIde(step, command);
58+
}
59+
5560
runInstallCobiGen(step: Step, command: Command): RunResult {
5661
let result = new RunResult();
5762
result.returnCode = 0;
@@ -158,6 +163,10 @@ export class Console extends Runner {
158163
}
159164
}
160165

166+
async assertRestoreDevonfwIde(step: Step, command: Command, result: RunResult) {
167+
this.assertInstallDevonfwIde(step, command, result);
168+
}
169+
161170
async assertInstallCobiGen(step: Step, command: Command, result: RunResult) {
162171
let assert = new Assertions()
163172
.noErrorCode(result)

0 commit comments

Comments
 (0)