Last active
December 28, 2015 09:59
-
-
Save fdeitelhoff/7483169 to your computer and use it in GitHub Desktop.
PowerShell v3 script for gitignore.io.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#For PowerShell v3 | |
Function gitignore { | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string[]]$list | |
) | |
$params = $list -join "," | |
invoke-WebRequest -Uri "http://gitignore.io/api/$params" | select -expandproperty content | out-file -FilePath $(join-path -path $pwd -ChildPath ".gitignore") -Encoding ascii | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment