Skip to content

Commit 170acd1

Browse files
committed
step decripstion for vscode and eclipse added
1 parent a8f5ab0 commit 170acd1

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

engine/wikiRunner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export abstract class WikiRunner extends Runner {
2020
this.outputPathTutorial = this.createFolder(path.join(outputDirectory, playbook.name), true);
2121
this.setVariable(this.WORKSPACE_DIRECTORY, path.join(this.getWorkingDirectory()));
2222
this.setVariable(this.INSTALLED_TOOLS, "");
23+
for(let i = 0; i< playbook.steps.length; i++){
24+
this.CommandCntMap.set(i, playbook.steps[i].lines.length-1);
25+
}
2326
}
2427

2528
async destroy(playbook: Playbook): Promise<void> {

runners/wikiConsole/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export class WikiConsole extends WikiRunner {
1414
this.setVariable(this.WORKSPACE_DIRECTORY, path.join(this.getWorkingDirectory()));
1515
this.renderWiki(path.join(this.getRunnerDirectory(), "templates", "intro.asciidoc"),
1616
{name: playbook.name, title: playbook.title, subtitle: playbook.subtitle, description: playbook.description});
17-
18-
for(let i = 0; i< playbook.steps.length; i++){
19-
this.CommandCntMap.set(i, playbook.steps[i].lines.length-1);
20-
}
2117
}
2218

2319
async destroy(playbook: Playbook): Promise<void> {

runners/wikiVsCode/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export class WikiVsCode extends WikiRunner {
3737
let title = this.checkForTitle(runCommand);
3838
let text = this.checkForText(runCommand);
3939
let textAfter = this.checkForTextAfter(runCommand);
40-
console.log(textAfter);
4140
let fileName = path.basename(runCommand.command.parameters[0]);
4241
let filePath = path.join(this.getVariable(this.WORKSPACE_DIRECTORY), runCommand.command.parameters[0].replace(fileName, ""));
4342
filePath = path.relative(this.getWorkingDirectory(), filePath).replace(/\\/g, "/");

runners/wikiVsCode/templates/changeFile.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%if(title){%>== <%- title; %>
2-
<%if(text){%><%- text; %><%}%><%}else{%>
2+
<%if(text){%><%- text; %><%}%>
33

44
=== Changing of the <%= fileName; %> File
55

0 commit comments

Comments
 (0)