diff --git a/src/code/SavePSResource.cs b/src/code/SavePSResource.cs index ce5581ad7..26d481fce 100644 --- a/src/code/SavePSResource.cs +++ b/src/code/SavePSResource.cs @@ -161,7 +161,6 @@ public string TemporaryPath /// /// Check validation for signed and catalog files - /// [Parameter] public SwitchParameter AuthenticodeCheck { get; set; } @@ -169,6 +168,7 @@ public string TemporaryPath /// /// Suppresses progress information. /// + [Parameter] public SwitchParameter Quiet { get; set; } /// diff --git a/test/SavePSResourceTests/SavePSResourceLocalTests.ps1 b/test/SavePSResourceTests/SavePSResourceLocalTests.ps1 index ba94dc71e..36eb5330c 100644 --- a/test/SavePSResourceTests/SavePSResourceLocalTests.ps1 +++ b/test/SavePSResourceTests/SavePSResourceLocalTests.ps1 @@ -198,4 +198,10 @@ Describe 'Test Save-PSResource for local repositories' -tags 'CI' { $err.Count | Should -Not -BeNullOrEmpty $err[0].FullyQualifiedErrorId | Should -BeExactly "InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.SavePSResource" } + + It "Save module using -Quiet" { + $res = Save-PSResource -Name $moduleName -Version "1.0.0" -Repository $localRepo -Path $SaveDir -PassThru -TrustRepository -Quiet + $res.Name | Should -Be $moduleName + $res.Version | Should -Be "1.0.0" + } }