Skip to content

Commit dda4618

Browse files
committed
added Path hint
1 parent d38dfb9 commit dda4618

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

runners/wikiConsole/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export class WikiConsole extends WikiRunner {
175175
}
176176

177177
runExecuteCommand(runCommand: RunCommand): RunResult{
178+
let currentdir = path.relative(this.getWorkingDirectory(), this.getVariable(this.WORKSPACE_DIRECTORY));
178179
let windowsCommand = runCommand.command.parameters[0];
179180
let linuxCommand = runCommand.command.parameters[1];
180181
let dir = (runCommand.command.parameters.length > 2 && runCommand.command.parameters[2].dir)
@@ -194,7 +195,7 @@ export class WikiConsole extends WikiRunner {
194195
: undefined;
195196

196197
this.renderWiki(path.join(this.getRunnerDirectory(), "templates", "executeCommand.asciidoc"),
197-
{windowsCommand: windowsCommand, linuxCommand: linuxCommand, dir: dir, async: async, args: args, port: port, appPath: appPath });
198+
{windowsCommand: windowsCommand, linuxCommand: linuxCommand, dir: dir, async: async, args: args, port: port, appPath: appPath, currentdir: currentdir});
198199

199200
return null;
200201
}

runners/wikiConsole/templates/executeCommand.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
=== Execute a command in a command prompt
44
First, you need to open a command prompt in your current Workspace. For Windows, you can use Powershell and on Linux, you can use the Terminal.
55
<% if(async){ %>The command wil start a server so that you have to open a new command prompt, that will be blocked while the server is running. <% } %>
6-
6+
Your current working folder should be *<startingFolder><% if(currentdir){ %>/<%= currentdir; %><%}%>*.
77
<% if(dir){ %>
8-
The command will be executed in the folder *<%= dir; %>* relative to your current Workspace. If the folders are not present, you maybe missed a wiki chapter and have to create it.
9-
First change your directory with this command `cd <%= dir; %>` <% } %>
8+
The command will be executed in the folder *<startingFolder><% if(currentdir){ %>/<%= currentdir; %><% } %>/<%= dir; %>*. If the folders are not present, you maybe missed a wiki chapter or you have to create them and change your directory.<%}%>
109

1110
.Operating system
1211
. Windows +

0 commit comments

Comments
 (0)