Skip to content

Commit 9333ddd

Browse files
ThomasNietoanamnavi
authored andcommitted
Add Name and Repository pipeline by property name (#1451)
1 parent b90ccce commit 9333ddd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/code/FindPSResource.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public sealed class FindPSResource : PSCmdlet
4141
[SupportsWildcards]
4242
[Parameter(Position = 0,
4343
ValueFromPipeline = true,
44+
ValueFromPipelineByPropertyName = true,
4445
ParameterSetName = NameParameterSet)]
4546
[ValidateNotNullOrEmpty]
4647
public string[] Name { get; set; }
@@ -91,7 +92,7 @@ public sealed class FindPSResource : PSCmdlet
9192
/// Specifies one or more repository names to search. If not specified, search will include all currently registered repositories.
9293
/// </summary>
9394
[SupportsWildcards]
94-
[Parameter()]
95+
[Parameter(ValueFromPipelineByPropertyName = true)]
9596
[ArgumentCompleter(typeof(RepositoryNameCompleter))]
9697
[ValidateNotNullOrEmpty]
9798
public string[] Repository { get; set; }

0 commit comments

Comments
 (0)