-
Notifications
You must be signed in to change notification settings - Fork 98
Add -TemporaryPath parameter to Install-PSResource, Save-PSResource, and Update-PSResource #763
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
Conversation
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.
Everything looks good-- just have 1 comment on providing user messaging. @anamnavi and @PaulHigin may have some opinions on that as well.
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.
Not sure about whether we warn/throw/write error if the temp path directory does not exist, but aside from that looks great to me.
Co-authored-by: Anam Navied <anam.naviyou@gmail.com>
Co-authored-by: Anam Navied <anam.naviyou@gmail.com>
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.
I also noticed that the InstallHelper
class is derived from PSCmdlet
, and this is incorrect because it is not being processed as a PowerShell cmdlet. I think this was done so that the PSCmdlet ThrowTerminatingError()
and WriteError()
methods could be called. But this is incorrect (and I am not sure what the behavior is). InstallHelper
should throw a normal C# exceptions and the top level cmdlets should catch and rethrow. Also InstallHelper
should return a string[]
for any errors to be reported by the top level cmdlet.
@alyssa1303 Can you make these changes, or create a new Issue
to make these changes later (since this is not really in scope of this PR)?
I think creating an issue for that (and a separate PR) would be better. |
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
I created an issue #767 |
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.
LGTM
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.
LGTM
Add -TemporaryPath parameter to Install-PSResource, Save-PSResource, and Update-PSResource
PR Summary
This PR adds a parameter called
-TemporaryPath
forInstall-PSResource
,Save-PSResource
, andUpdate-PSResource
cmdlets, which allows users to set the directory for temporary installation.PR Context
Resolves #650
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.