Skip to content

Feature Request: Update-Module without parameters should identify module/repository #136

@LarsFosdal

Description

@LarsFosdal

When you run Update-Module without parameters, it runs through the installed modules and asks you to confirm installation if the InstallationPolicy dictates so.

Unfortunately, it does not display which module it is currently working on, nor the name of the repository.

It would be desirable if the confirmation also did a Write-Host of the module name and repository name before you confirm.

Example: A number of updates happened - but it is not possible to see which module was installed - except from during the progress bar display.

image

Suggestion - Output something like

Untrusted repository "repository name" for module "module name"
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository
cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions