Created
December 25, 2013 03:09
-
-
Save colorqualia/8119866 to your computer and use it in GitHub Desktop.
PowerShell v3 script for gitignore.io.
This file contains hidden or 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
#PowerShell v3 script | |
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