-
Notifications
You must be signed in to change notification settings - Fork 111
Conversation
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
@@ -53,6 +53,10 @@ export class CheTaskProvider { | |||
resultTarget.machineName = await this.machinePicker.pick(); | |||
} | |||
|
|||
if (target && target.workingDir) { | |||
resultTarget.workingDir = cheTaskDefinition.target.workingDir; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You already have target
here, so you can take workingDir
from target
directly, like resultTarget.workingDir = target.workingDir
@@ -59,13 +59,16 @@ export class CheTaskRunner { | |||
throw new Error("Che task config must have 'target.machineName' property specified"); | |||
} | |||
|
|||
const workingDir = target.workingDir; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this const here? As I can see we don't use it in another places, so you can just pass target.workingDir
. But up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so many devs, so many minds
const cwd = target.workingDir;
...
tty: true,
cwd
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful to mention workingDir
property in the plugin's readme file as well.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
#116 (comment)
Signed-off-by: Oleksandr Andriienko oandriie@redhat.com