-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgig.ps1
More file actions
16 lines (15 loc) · 827 Bytes
/
gig.ps1
File metadata and controls
16 lines (15 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#For PowerShell v3
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 -list visualstudio, visualstudiocode, fsharp, powershell, macos, intellij+all
Write-Output '# Project Specifics' | Out-File -Append -FilePath .\.gitignore
Write-Output '.trash' | Out-File -Append -FilePath .\.gitignore
Write-Output '/src/TaskManagementService/Models/' | Out-File -Append -FilePath .\.gitignore
Write-Output '/src/TaskManagementService/RealtimeModels/' | Out-File -Append -FilePath .\.gitignore