You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short reason:
When publishing to the PSGallery, i´d like to set Module details, as i could do it in the WebUI.
Sure this is in the privatedata section, but a later change must be done in the console WebUI
Detailed Reason:
Real-world testing of modules and script means publish it to the gallery and then test (i.e. deployment to Azure automation, Pester, ... ).
If this is part of the CI/CD pipeline, it also means when a module/script has issues in testing we´d like to hide it after it has been published programmatically.
So a Set-Module command would look like this: Set-Module -Name 'mymodule' -visibility $false
We don't want to make it possible to modify a module arbitrarily after it has been published. But providing a programmatic way to make it visible or not is reasonable.
Since the scope of this request has been limited to making a resource listed or unlisted. My recommendation is do one of following:
Create Unpublish-PSResource with the functionality to unlist a resource and have Publish-PSResource with a parameter set that can list the resource.
Create Hide-PSResource and Show-PSResource that lists and unlists resources.
The Set verb is overloaded in my opinion when people try to shove every config item into a single cmdlet especially when functionality can be broken out to use specific verbs.
Activity
edyoung commentedon Sep 19, 2018
We don't want to make it possible to modify a module arbitrarily after it has been published. But providing a programmatic way to make it visible or not is reasonable.
kamennikolov commentedon Nov 25, 2022
Is there any progress on this request? What is the chance that we get this functionality any time soon?
RStadlmair commentedon Nov 25, 2022
Actually, based in 3.0.0-beta17 this should then be Set-PSResource.
ThomasNieto commentedon Mar 1, 2023
Since the scope of this request has been limited to making a resource listed or unlisted. My recommendation is do one of following:
Create
Unpublish-PSResourcewith the functionality to unlist a resource and havePublish-PSResourcewith a parameter set that can list the resource.Create
Hide-PSResourceandShow-PSResourcethat lists and unlists resources.The
Setverb is overloaded in my opinion when people try to shove every config item into a single cmdlet especially when functionality can be broken out to use specific verbs.RStadlmair commentedon Mar 6, 2023
Unpublish-PSResourcesounds more to really REMOVE it from the Repository, thats confusing.So i would prefer:
Show/Hide-PSResourceCmdLetsPublish-PSResource -hide:$trueCheers/Roman
kamennikolov commentedon Oct 10, 2023
Sydney Smith (@SydneyhSmith) can we expect this feature request to be prioritized any time soon?