@@ -413,8 +413,8 @@ function Install-ModuleFast {
413413 $NoProfileUpdate = $true
414414 }
415415 if (-not $NoPSModulePathUpdate ) {
416- $pathUpdateMessage = " Update PSModulePath $ ( $NoProfileUpdate ? ' ' : ' and CurrentUserAllHosts profile ' ) to include $Destination "
417- if (-not $PSCmdlet.ShouldProcess ($pathUpdateMessage )) { return }
416+ $pathUpdateMessage = " Update PSModulePath $ ( $NoProfileUpdate ? ' ' : ' and CurrentUserAllHosts profile ' ) to include "
417+ if (-not $PSCmdlet.ShouldProcess ($pathUpdateMessage , $pathUpdateMessage , $pathUpdateMessage )) { return }
418418
419419 Add-DestinationToPSModulePath - Destination $Destination - NoProfileUpdate:$NoProfileUpdate
420420 }
@@ -975,23 +975,6 @@ function Add-Getters {
975975
976976# region Helpers
977977
978- function New-NuGetPackageConfig ($modulesToInstall , $Path = [io.path ]::GetTempFileName()) {
979- $packageConfig = [xml.xmlwriter ]::Create([string ]$Path )
980- $packageConfig.WriteStartDocument ()
981- $packageConfig.WriteStartElement (' packages' )
982- foreach ($ModuleItem in $ModulesToInstall ) {
983- $packageConfig.WriteStartElement (' package' )
984- $packageConfig.WriteAttributeString (' id' , $null , $ModuleItem.id )
985- $packageConfig.WriteAttributeString (' version' , $null , $ModuleItem.Version )
986- $packageConfig.WriteEndElement ()
987- }
988- $packageConfig.WriteEndElement ()
989- $packageConfig.WriteEndDocument ()
990- $packageConfig.Flush ()
991- $packageConfig.Close ()
992- return $path
993- }
994-
995978function Get-ModuleInfoAsync {
996979 [CmdletBinding ()]
997980 [OutputType ([Task [String ]])]
@@ -1181,6 +1164,9 @@ function Limit-ModuleFastSpecs {
11811164 }
11821165 -not $Highest ? $Versions : @ ($Versions | Sort-Object - Descending | Select-Object - First 1 )
11831166}
1167+
1168+
1169+
11841170# endregion Helpers
11851171
11861172# Export-ModuleMember Get-ModuleFast
0 commit comments