diff --git a/src/code/FindPSResource.cs b/src/code/FindPSResource.cs index f6a3c9ccf..b99b520c5 100644 --- a/src/code/FindPSResource.cs +++ b/src/code/FindPSResource.cs @@ -40,6 +40,7 @@ public sealed class FindPSResource : PSCmdlet /// /// Specifies name of a resource or resources to find. Accepts wild card characters. /// + [SupportsWildcards] [Parameter(Position = 0, ValueFromPipeline = true, ParameterSetName = ResourceNameParameterSet)] diff --git a/src/code/GetPSResource.cs b/src/code/GetPSResource.cs index 367262f7a..0db720a5f 100644 --- a/src/code/GetPSResource.cs +++ b/src/code/GetPSResource.cs @@ -28,6 +28,7 @@ public sealed class GetPSResource : PSCmdlet /// /// Specifies the desired name for the resource to look for. /// + [SupportsWildcards] [Parameter(Position = 0, ValueFromPipeline = true)] public string[] Name { get; set; } diff --git a/src/code/GetPSResourceRepository.cs b/src/code/GetPSResourceRepository.cs index 66b6f7c6d..54eaa8ecb 100644 --- a/src/code/GetPSResourceRepository.cs +++ b/src/code/GetPSResourceRepository.cs @@ -24,6 +24,7 @@ public sealed class GetPSResourceRepository : PSCmdlet /// Specifies the name(s) of a registered repository to find. /// Supports wild card characters. /// + [SupportsWildcards] [Parameter(Position = 0, ValueFromPipeline = true)] [ArgumentCompleter(typeof(RepositoryNameCompleter))] [ValidateNotNullOrEmpty] diff --git a/src/code/UninstallPSResource.cs b/src/code/UninstallPSResource.cs index 019484191..96a15d362 100644 --- a/src/code/UninstallPSResource.cs +++ b/src/code/UninstallPSResource.cs @@ -24,6 +24,7 @@ public sealed class UninstallPSResource : PSCmdlet /// Specifies the exact names of resources to uninstall. /// A comma-separated list of module names is accepted. The resource name must match the resource name in the repository. /// + [SupportsWildcards] [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ParameterSetName = NameParameterSet)] [ValidateNotNullOrEmpty] public string[] Name { get; set; } @@ -54,10 +55,10 @@ public sealed class UninstallPSResource : PSCmdlet [Parameter] public SwitchParameter SkipDependencyCheck { get; set; } - /// - /// Specifies the scope of installation. - /// - [Parameter] + /// + /// Specifies the scope of installation. + /// + [Parameter] public ScopeType Scope { get; set; } #endregion diff --git a/src/code/UpdatePSResource.cs b/src/code/UpdatePSResource.cs index 9913b4468..79e5e7f02 100644 --- a/src/code/UpdatePSResource.cs +++ b/src/code/UpdatePSResource.cs @@ -35,6 +35,7 @@ public sealed class UpdatePSResource : PSCmdlet /// Specifies name of a resource or resources to update. /// Accepts wildcard characters. /// + [SupportsWildcards] [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] public string[] Name { get; set ; } = new string[] {"*"};