Skip to content

Commit 92e585c

Browse files
committed
changed back to createproject with one param and cd commands in template
1 parent db6742e commit 92e585c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

runners/katacoda/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export class Katacoda extends Runner {
125125

126126
// generate template to change directory, if the current directory is not equal to the required start directory
127127
let cdCommand = this.changeCurrentDir(path.join("/root", "devonfw"));
128-
let cdTarget = this.changeCurrentDir(path.join(command.parameters[1]));
129128

130129
this.steps.push({
131130
"title": "Create a new project",
@@ -135,7 +134,7 @@ export class Katacoda extends Runner {
135134
//update current directory
136135
this.currentDir = path.join(this.currentDir, "workspace", "main");
137136

138-
this.renderTemplate("createDevon4jProject.md", this.outputPathTutorial + "step" + (this.stepsCount++) + ".md", { text: step.text, textAfter: step.textAfter, cdCommand: cdCommand, cdTarget: cdTarget, name : command.parameters[0]});
137+
this.renderTemplate("createDevon4jProject.md", this.outputPathTutorial + "step" + (this.stepsCount++) + ".md", { text: step.text, textAfter: step.textAfter, cdCommand: cdCommand, name : command.parameters[0]});
139138
return null;
140139
}
141140

runners/katacoda/templates/createDevon4jProject.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
<%= cdCommand; %>
66

7-
Navigate to the right folder in your devonfw installation directory.
8-
<%= cdTarget; %>
7+
Navigate to the 'workspaces/main/' folder in your devonfw installation directory.
8+
`cd workspaces/main`{{execute}}
99

1010
Now you can use devonfw to setup a java project for you by executing the following devon command.
1111
`devon java create com.example.application.<%= name; %>`{{execute}}

0 commit comments

Comments
 (0)