-
Notifications
You must be signed in to change notification settings - Fork 5
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
Get-ModuleFastPlan
: Discuss keep as public command
#27
Comments
Get-ModuleFastPlan
: Discuss keep as public command
@johlju have you tried -whatif? It generates and outputs the same plan as objects, literally the same as Get-ModuleFastPlan. There's nothing about -whatif that says it has to only output console stuff. The reason I was planning to retire it is that the command surface for Install-ModuleFast is starting to get pretty broad, and in order for Get-ModuleFastPlan to support all the same functionality it all has to be duplicated (and subsequently tested). If this was a binary module that would be easy because I can put all that duplication into a parent class, but with script modules there's no way to define common parameters for a function that I'm aware of. |
I think to clarify, |
I tested
|
Maybe move the output to a |
That's good. Let's close this. Just wanted the dialog. 🙂 |
@johlju What I can do is add a -Plan parameter that will basically be -WhatIf without the whatif output (it is extremely annoying there is no way to suppress whatif output without overriding the host). |
Yes a |
It's a tricky position because if it was any other module, it would mean |
Thought about it a bit more and since Get-ModuleFastPlan exist, a |
I am using
Get-ModuleFastPlan
to get a result to programmatically see what is needed to be updated.WhatIf
wouldn't help with that, so sorry to see it go. I rather see it still being a supported public command if it is possible.Originally posted by @johlju in #20 (comment)
The text was updated successfully, but these errors were encountered: