Public/Select-GitHubLanguage.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Function Select-GitHubLanguage {
  [CmdletBinding()]
  [Alias('GitLang')]
  param(
    [Parameter(Mandatory,ValueFromPipeline)]
    $InputObject,
    [string[]]$Languages = ('PowerShell','C#')
  )
  process{
    $InputObject | Where-Object {$_.language -match ($Languages -join '|')}
  }
}