Please add "Set-Module" and "Set-Script"
Hi !
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
R.
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.
Is there any progress on this request? What is the chance that we get this functionality any time soon?
Actually, based in 3.0.0-beta17 this should then be Set-PSResource.
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 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.
Unpublish-PSResource sounds more to really REMOVE it from the Repository, thats confusing.
So i would prefer:
-
Show/Hide-PSResourceCmdLets - and a parameter in like
Publish-PSResource -hide:$true
Cheers/Roman
@SydneyhSmith can we expect this feature request to be prioritized any time soon?