Skip to main content

gitignore CLI

Fast gitignore CLI tool with cached templates

Features

  • Extremely fast - no network calls made if the cache has been retrieved with gi --refresh.
  • Templates source, you can also set additional custom templates dir with -c or via $GITIGNORE_CLI_TEMPLATE_DIR.

Installation

First make sure the git executable is installed and in your $PATH, as it is required to retrieve the gitignore templates.

pipx

This is the recommended installation method.

$ pipx install gitignore-cli-tddschn

pip

$ pip install gitignore-cli-tddschn

Usage

You can either invoke gitignore CLI with gi or gitignore.

$ gi -h

usage: gi [-h] [-c CUSTOM_TEMPLATES_DIR] [-o FILE] [-r] [-l] [-a] [-w] [TEMPLATES ...]

gitignore CLI

positional arguments:
  TEMPLATES             A positional argument (default: None)

options:
  -h, --help            show this help message and exit
  -c CUSTOM_TEMPLATES_DIR, --custom-templates-dir CUSTOM_TEMPLATES_DIR
                        Custom templates dir, gitignore CLI will look for templates named *.gitignore in this dir first. Defaults to the value of
                        $GITIGNORE_CLI_TEMPLATE_DIR env var (default: /Users/tscp/.cache/gitignore-cli/gitignore-tddschn/templates)
  -o FILE, --out FILE   Output to file, append if exists, if -a or -w is not specified (default: <_io.TextIOWrapper name='<stdout>' mode='w'
                        encoding='utf-8'>)
  -r, --refresh         Refresh gitignore cache (default: False)
  -l, --list            Lists available gitignore templates (default: False)
  -a, --append          Append to the .gitignore of current git repository (default: False)
  -w, --write           Write to the .gitignore of current git repository (overwrite) (default: False)

Develop

$ git clone https://github.com/tddschn/gitignore-cli-tddschn.git
$ cd gitignore-cli-tddschn
$ poetry install

Metadata

Release files for gitignore-cli-tddschn 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitignore-cli-tddschn 0.4.1
File Size Uploaded
gitignore-cli-tddschn-0.4.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitignore-cli-tddschn 0.4.1
File Interpreter ABI Platform
gitignore_cli_tddschn-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / gitignore-cli-tddschn-0.4.1.tar.gz

Download URL gitignore-cli-tddschn-0.4.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6812e26cb07370b04fc6d8ad6636b1f04674f135ac6196e0ea4b8d3bab791a7a
BLAKE2b-256 checksum
How to use checksums
ee8894311d20eb3c82f353d621a1f064d6b0dc0500ac33962216c48d54b4f8dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0

Release files / gitignore_cli_tddschn-0.4.1-py3-none-any.whl

Download URL gitignore_cli_tddschn-0.4.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65361a50f305a61766058c67025aef0f782468bec702f9187882271fa852a636
BLAKE2b-256 checksum
How to use checksums
813691c0da6485bd6e3adb4af73a7a4a8281cc612bbcd7a3423c09d2a725cdc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page