You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/Update-Gitignore.ps1

16 lines
525 B

$ErrorActionPreference = "Stop"
Function gig {
param(
[Parameter(Mandatory=$true)]
[string[]]$list
)
$params = ($list | ForEach-Object { [uri]::EscapeDataString($_) }) -join ","
Invoke-WebRequest -Uri "https://www.toptal.com/developers/gitignore/api/$params" | `
Select-Object -ExpandProperty content | `
Out-File -FilePath $(Join-Path -path $pwd -ChildPath ".gitignore") -Encoding ascii
}
gig windows,rider,csharp,macos
git commit -m 'chore(git): Latest .gitignore from gitignore.io' -- .gitignore