-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add working directory parameter to Start-Job
#10324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add working directory parameter to Start-Job
#10324
Conversation
PaulHigin
left a comment
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.