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.
15 lines
447 B
15 lines
447 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
|