Skip to main content

gitignore CLI

Fast gitignore CLI tool with cached templates

Templates source

Features

  • Extremely fast - no network calls made if the cache has been retrieved with gi --refresh.

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.

$ gitignore -h
usage: gitignore [-h] [-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
  -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

Download files

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

Source Distribution

gitignore-cli-tddschn-0.4.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitignore_cli_tddschn-0.4.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file gitignore-cli-tddschn-0.4.0.tar.gz.

File metadata

  • Download URL: gitignore-cli-tddschn-0.4.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0

File hashes

Hashes for gitignore-cli-tddschn-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7e3c575d04d300eb66624f4d87270cad3bcecfc443641a093fdbaacf16d5ab9b
MD5 4f23fc1d7284dde282f1856fc6117262
BLAKE2b-256 0455120cd72c6c359f9d3c9fc190303704545e45f52194e8339f47d2883d9d83

See more details on using hashes here.

File details

Details for the file gitignore_cli_tddschn-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gitignore_cli_tddschn-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b8f1aecb3530cfee57b8ad6f7e5b99894fbd06db445ca0ce823080e8dc4578
MD5 b84cf1d7347abe3a71d2b0abb5466230
BLAKE2b-256 24f6a0d1be42b40c564a8c91deb7bd5fab6a1250adb6ed55791df5dee9f1f0d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page