Python 3 gitignore fetcher based on gitignore.io
# pip3 install giig
usage: giig [-h] [--list] [--search SEARCH] [--file [FILE]] [lang [lang ...]]
Download .gitignore files from gitignore.io
positional arguments:
lang language, IDE or OS to include in the .gitignore file
optional arguments:
-h, --help show this help message and exit
--list, -l list all language, IDE or OS options
--search SEARCH, -s SEARCH
search list of options and print matches
--file [FILE], -f [FILE]
specify which file to write to
Print list of all possible options for gitignore.io
giig -l
Search for specific term (e.g. python)
giig -s python
giig python
giig -f -- python
giig -f custom-file.txt python
import giig
# get list of languages, IDEs, etc.
giig.get_list()
# get list of languages, IDEs, etc.
giig.search(term)
# get gitignore for one/several languages, IDEs, etc.
# where options is a list of terms
giig.get_ignore(options)
- make giig print to stdout without
-f
- add cache (don't need to query gitignore.io everytime)