Add working directory parameter to Start-Job#10324
Add working directory parameter to Start-Job#10324adityapatwardhan merged 16 commits intoPowerShell:masterfrom
Start-Job#10324Conversation
PaulHigin
left a comment
There was a problem hiding this comment.
Overall looks good. Just a few comments.
src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
Show resolved
Hide resolved
src/System.Management.Automation/engine/remoting/server/OutOfProcServerMediator.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/resources/RemotingErrorIdStrings.resx
Outdated
Show resolved
Hide resolved
PaulHigin
left a comment
There was a problem hiding this comment.
The changes look good to me. However, it appears the rebase didn't work correctly because I now see changes from other PRs here.
|
I saw that as well, I am working on a fix as we speak |
…breaking change in PowerShellProcessInstance by making parameter optional and renamed parameter to workingDirectory in OutOfProcServerMediator to make it consistent
d0dd555 to
e4dc1f3
Compare
src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
Show resolved
Hide resolved
…d improved testing using testcases patterns & testDrive
|
@adityapatwardhan I think I have addressed all your feedback. Let me know what you think |
Start-Job
src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
Outdated
Show resolved
Hide resolved
…d foreach in the tests
|
@adityapatwardhan lemme know what you think about the changes now :) |
adityapatwardhan
left a comment
There was a problem hiding this comment.
Some more changes in the tests. Thanks for your patience.
|
Please also look at CodeFactor issues. |
|
@adityapatwardhan I will do my best to clean up the CodeFactor issues in the files that I have touched. But there are some issues that are related to documentation of parameters in functions that I have not touched so I am not sure if I am the best person to write this documentation. Would this be ok? |
|
@davinci26 Thank you for your contribution! |
|
🎉 Handy links: |


PR Summary and Changes
Solves the same problem as #10274 (for future reference you can read the discussion) with a different implementation
start-jobworkingDirectoryAwaiting your feedback and comments!
PR Context
Fix #4287
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.