Gi
CLI util, to create a .gitignore file that has been seeded by gitignore.io
Installation
Add this line to your application's Gemfile:
install it with ruby-gems:
$ gem install gi-cli
Usage
list
for a list of seeds run $ gi list, on a side note if you are searching for a specific one you can simply use grep or ack and pipe in your search term gi list | ack "node"
seed
the default command is the one that appends the .gitignore file, it works in a two step process. upon calling the command $ gi <args> OR $ gi seed <args>.
$ gi osx,ruby,node,emacs$ gi seed osx,ruby,node,emacs
--dry
attaching the --dry flag to the initial seed command will simply print out the (would be) contents of the .gitignore to the terminal and not actually create a file on the hard drive (really this only exists for testing but hey, someone might use it)
--overwrite
attaching the --overwrite flag to seed will overwrite the existing .gitignore with the seeded one.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/bernsie/gi-cli.
License
The gem is available as open source under the terms of the MIT License.