Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

CLI for gitignore.io

Project description

gitignore

Python 3 gitignore fetcher based on gitignore.io

Install

# pip3 install giig

Usage

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

Print list of all possible options for gitignore.io

giig -l

Search

Search for specific term (e.g. python)

giig -s python

Print to stdout

giig python

Write .gitignore file

giig -f -- python

Use custom file

giig -f custom-file.txt python

Use as library

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)

Todo

  • <input type="checkbox" checked="" disabled="" /> make giig print to stdout without -f
  • <input type="checkbox" disabled="" /> add cache (don't need to query gitignore.io everytime)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for giig, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size giig-0.3.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page