Functions/Get-GitIgnore.ps1
function Get-GitIgnore { param ( [Parameter(HelpMessage = "The programming language to get a gitignore file for")] [string] $Language = $GitTool.GitIgnore.Default ) (Invoke-WebRequest "https://gitignore.io/api/$Language").Content } Register-ArgumentCompleter -CommandName Get-GitIgnore -ParameterName Language -ScriptBlock $Function:SuggestGitIgnoreType function Get-GitIgnoreTypes { (Invoke-WebRequest "https://gitignore.io/api/list").Content.Split(',', "`t", "`n", "`r") | ForEach-Object { $_.Trim() } } |