parent
97d229d1f6
commit
934dc65d3c
@ -0,0 +1,15 @@
|
||||
$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
|
||||
git commit -m 'chore(git): Latest .gitignore from gitignore.io' -- .gitignore
|
Loading…
Reference in new issue