Skip to content

Commit

Permalink
Add Name and Repository pipeline by property name
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto committed Oct 17, 2023
1 parent 6bd33d0 commit e77fe5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/code/FindPSResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public sealed class FindPSResource : PSCmdlet
[SupportsWildcards]
[Parameter(Position = 0,
ValueFromPipeline = true,
ValueFromPipelineByPropertyName = true,
ParameterSetName = NameParameterSet)]
[ValidateNotNullOrEmpty]
public string[] Name { get; set; }
Expand Down Expand Up @@ -91,7 +92,7 @@ public sealed class FindPSResource : PSCmdlet
/// Specifies one or more repository names to search. If not specified, search will include all currently registered repositories.
/// </summary>
[SupportsWildcards]
[Parameter()]
[Parameter(ValueFromPipelineByPropertyName = true)]
[ArgumentCompleter(typeof(RepositoryNameCompleter))]
[ValidateNotNullOrEmpty]
public string[] Repository { get; set; }
Expand Down

0 comments on commit e77fe5f

Please sign in to comment.