-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:valutac/gitnore
- Loading branch information
Showing
6 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
|
||
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 | ||
.glide/ | ||
build/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2017 Valutac | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,61 @@ | ||
## Installation | ||
|
||
``` | ||
brew install gitnore | ||
go install github.com/valutac/gitnore | ||
``` | ||
|
||
## Usage | ||
|
||
Commands: | ||
Available commands: | ||
|
||
``` | ||
update | Update Update all gitignore configuration | ||
ls List available gitignore | ||
i Gitignore input | ||
o Gitignore output filename | ||
list List available gitignore | ||
-i | input Gitignore input | ||
-o | output Gitignore output filename | ||
``` | ||
|
||
### Basic Usage | ||
|
||
``` | ||
$ gitnore -i go # gitignore for golang | ||
``` | ||
|
||
### Update Map File | ||
|
||
``` | ||
$ gitnore update | ||
``` | ||
|
||
### List available gitignore | ||
|
||
``` | ||
$ gitnore list | ||
``` | ||
|
||
Output | ||
|
||
``` | ||
List avaiables gitignore: | ||
actionscript, ada, agda, android, appceleratortitanium, appengine, archlinuxpackages, autotools, c, c++, | ||
cakephp, cfwheels, chefcookbook, clojure, cmake, codeigniter, commonlisp, composer, concrete5, coq, | ||
craftcms, cuda, d, dart, delphi, dm, drupal, eagle, elisp, elixir, elm, episerver, erlang, | ||
expressionengine, extjs, fancy, finale, forcedotcom, fortran, fuelphp, gcov, gitbook, go, gradle, grails, | ||
gwt, haskell, idris, igorpro, java, jboss, jekyll, joomla, julia, kicad, kohana, kotlin, labview, laravel, | ||
leiningen, lemonstand, lilypond, lithium, lua, magento, maven, mercury, metaprogrammingsystem, nanoc, nim, | ||
node, objective-c, ocaml, opa, opencart, oracleforms, packer, perl, phalcon, playframework, plone, | ||
prestashop, processing, purescript, python, qooxdoo, qt, r, rails, rhodesrhomobile, ros, ruby, rust, sass, | ||
scala, scheme, scons, scrivener, sdcc, seamgen, sketchup, smalltalk, stella, sugarcrm, swift, symfony, | ||
symphonycms, terraform, tex, textpattern, turbogears2, typo3, umbraco, unity, unrealengine, visualstudio, | ||
vvvv, waf, wordpress, xojo, yeoman, yii, zendframework, zephir | ||
``` | ||
|
||
## Contributing | ||
|
||
Pull Request is open! | ||
|
||
## LICENSE | ||
|
||
[MIT LICENSE](LICENSE) | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
usage () { | ||
local arch=$(basename $0) | ||
cat <<EOF | ||
USAGE: | ||
$ $arch [-h|--help] COMMAND | ||
EXAMPLES: | ||
$ $arch compile Compile binary | ||
EOF | ||
exit 1; | ||
} | ||
|
||
compile () { | ||
GOOS=windows GOARCH=386 go build -o build/gitnore-windows.exe | ||
GOOS=windows GOARCH=amd64 go build -o build/gitnore-windows-64.exe | ||
GOOS=linux GOARCH=386 go build -o build/gitnore-linux-32 | ||
GOOS=linux GOARCH=amd64 go build -o build/gitnore-linux-64 | ||
GOOS=darwin GOARCH=386 go build -o build/gitnore-macos-32 | ||
GOOS=darwin GOARCH=amd64 go build -o build/gitnore-macos-64 | ||
printf 'Binary is ready\n'; | ||
} | ||
|
||
if [ $# -ne 1 ]; then | ||
usage; | ||
fi | ||
|
||
if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ] || [ "$1" == '--help' ] | ||
then | ||
usage; | ||
fi | ||
|
||
if [ "$1" == "compile" ]; then | ||
compile | ||
else | ||
usage; | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"actionscript":"./config/Actionscript.gitignore","ada":"./config/Ada.gitignore","agda":"./config/Agda.gitignore","android":"./config/Android.gitignore","appceleratortitanium":"./config/AppceleratorTitanium.gitignore","appengine":"./config/AppEngine.gitignore","archlinuxpackages":"./config/ArchLinuxPackages.gitignore","autotools":"./config/Autotools.gitignore","c":"./config/C.gitignore","c++":"./config/C++.gitignore","cakephp":"./config/CakePHP.gitignore","cfwheels":"./config/CFWheels.gitignore","chefcookbook":"./config/ChefCookbook.gitignore","clojure":"./config/Clojure.gitignore","cmake":"./config/CMake.gitignore","codeigniter":"./config/CodeIgniter.gitignore","commonlisp":"./config/CommonLisp.gitignore","composer":"./config/Composer.gitignore","concrete5":"./config/Concrete5.gitignore","coq":"./config/Coq.gitignore","craftcms":"./config/CraftCMS.gitignore","cuda":"./config/CUDA.gitignore","d":"./config/D.gitignore","dart":"./config/Dart.gitignore","delphi":"./config/Delphi.gitignore","dm":"./config/DM.gitignore","drupal":"./config/Drupal.gitignore","eagle":"./config/Eagle.gitignore","elisp":"./config/Elisp.gitignore","elixir":"./config/Elixir.gitignore","elm":"./config/Elm.gitignore","episerver":"./config/EPiServer.gitignore","erlang":"./config/Erlang.gitignore","expressionengine":"./config/ExpressionEngine.gitignore","extjs":"./config/ExtJs.gitignore","fancy":"./config/Fancy.gitignore","finale":"./config/Finale.gitignore","forcedotcom":"./config/ForceDotCom.gitignore","fortran":"./config/Fortran.gitignore","fuelphp":"./config/FuelPHP.gitignore","gcov":"./config/Gcov.gitignore","gitbook":"./config/GitBook.gitignore","go":"./config/Go.gitignore","gradle":"./config/Gradle.gitignore","grails":"./config/Grails.gitignore","gwt":"./config/GWT.gitignore","haskell":"./config/Haskell.gitignore","idris":"./config/Idris.gitignore","igorpro":"./config/IGORPro.gitignore","java":"./config/Java.gitignore","jboss":"./config/Jboss.gitignore","jekyll":"./config/Jekyll.gitignore","joomla":"./config/Joomla.gitignore","julia":"./config/Julia.gitignore","kicad":"./config/KiCad.gitignore","kohana":"./config/Kohana.gitignore","kotlin":"./config/Kotlin.gitignore","labview":"./config/LabVIEW.gitignore","laravel":"./config/Laravel.gitignore","leiningen":"./config/Leiningen.gitignore","lemonstand":"./config/LemonStand.gitignore","lilypond":"./config/Lilypond.gitignore","lithium":"./config/Lithium.gitignore","lua":"./config/Lua.gitignore","magento":"./config/Magento.gitignore","maven":"./config/Maven.gitignore","mercury":"./config/Mercury.gitignore","metaprogrammingsystem":"./config/MetaProgrammingSystem.gitignore","nanoc":"./config/Nanoc.gitignore","nim":"./config/Nim.gitignore","node":"./config/Node.gitignore","objective-c":"./config/Objective-C.gitignore","ocaml":"./config/OCaml.gitignore","opa":"./config/Opa.gitignore","opencart":"./config/OpenCart.gitignore","oracleforms":"./config/OracleForms.gitignore","packer":"./config/Packer.gitignore","perl":"./config/Perl.gitignore","phalcon":"./config/Phalcon.gitignore","playframework":"./config/PlayFramework.gitignore","plone":"./config/Plone.gitignore","prestashop":"./config/Prestashop.gitignore","processing":"./config/Processing.gitignore","purescript":"./config/PureScript.gitignore","python":"./config/Python.gitignore","qooxdoo":"./config/Qooxdoo.gitignore","qt":"./config/Qt.gitignore","r":"./config/R.gitignore","rails":"./config/Rails.gitignore","rhodesrhomobile":"./config/RhodesRhomobile.gitignore","ros":"./config/ROS.gitignore","ruby":"./config/Ruby.gitignore","rust":"./config/Rust.gitignore","sass":"./config/Sass.gitignore","scala":"./config/Scala.gitignore","scheme":"./config/Scheme.gitignore","scons":"./config/SCons.gitignore","scrivener":"./config/Scrivener.gitignore","sdcc":"./config/Sdcc.gitignore","seamgen":"./config/SeamGen.gitignore","sketchup":"./config/SketchUp.gitignore","smalltalk":"./config/Smalltalk.gitignore","stella":"./config/Stella.gitignore","sugarcrm":"./config/SugarCRM.gitignore","swift":"./config/Swift.gitignore","symfony":"./config/Symfony.gitignore","symphonycms":"./config/SymphonyCMS.gitignore","terraform":"./config/Terraform.gitignore","tex":"./config/TeX.gitignore","textpattern":"./config/Textpattern.gitignore","turbogears2":"./config/TurboGears2.gitignore","typo3":"./config/Typo3.gitignore","umbraco":"./config/Umbraco.gitignore","unity":"./config/Unity.gitignore","unrealengine":"./config/UnrealEngine.gitignore","visualstudio":"./config/VisualStudio.gitignore","vvvv":"./config/VVVV.gitignore","waf":"./config/Waf.gitignore","wordpress":"./config/WordPress.gitignore","xojo":"./config/Xojo.gitignore","yeoman":"./config/Yeoman.gitignore","yii":"./config/Yii.gitignore","zendframework":"./config/ZendFramework.gitignore","zephir":"./config/Zephir.gitignore"} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class Gitnore < Formula | ||
desc "👨💻 gitignore super power" | ||
homepage "https://valutac.com" | ||
url "https://github.com/valutac/gitnore/archive/0.1.0.tar.gz" | ||
sha256 "0c8b7f9d5e79b87aa7fe508ae4613c0feb93685a57e930298c322d999ed27af7" | ||
head "https://github.com/valutac/gitnore.git" | ||
|
||
depends_on "go" => :build | ||
depends_on :hg => :build | ||
|
||
def install | ||
ENV["GOPATH"] = buildpath | ||
|
||
system "go", "build", "-o", "gitnore" | ||
bin.install "gitnore" | ||
end | ||
|
||
test do | ||
system "#{bin}/gitnore" | ||
end | ||
end |