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.
16 lines
519 B
16 lines
519 B
2 years ago
|
$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
|