Skip to content

Please add "Set-Module" and "Set-Script" #125

Description

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.

Activity

  1. edyoung commented on Sep 19, 2018

    @edyoung

    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.

  2. added this to the vNext milestone on Sep 4, 2020
  3. kamennikolov commented on Nov 25, 2022

    @kamennikolov

    Is there any progress on this request? What is the chance that we get this functionality any time soon?

  4. RStadlmair commented on Nov 25, 2022

    @RStadlmair
    Author

    Actually, based in 3.0.0-beta17 this should then be Set-PSResource.

  5. ThomasNieto commented on Mar 1, 2023

    @ThomasNieto
    Contributor

    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.

  6. RStadlmair commented on Mar 6, 2023

    @RStadlmair
    Author

    Unpublish-PSResource sounds more to really REMOVE it from the Repository, thats confusing.

    So i would prefer:

    • Show/Hide-PSResource CmdLets
    • and a parameter in like Publish-PSResource -hide:$true

    Cheers/Roman

  7. kamennikolov commented on Oct 10, 2023

    @kamennikolov

    Sydney Smith (@SydneyhSmith) can we expect this feature request to be prioritized any time soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions