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.2.1.tar.gz (3.8 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.2.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gitignore-cli-tddschn-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b56e15510153201582b999ac9b14bdc262b2b1f2bc4c7a0936828408c7f0d7e9
MD5 8ac9ece0a80f0df91b25ed9e1f67cba3
BLAKE2b-256 8d6cdbd0ef79085c2988ffb907861981ca12fb52e7fb296e5af308f842176d87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gitignore_cli_tddschn-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d0673dcc321cb1edfd58b6c29b3860a0d54ca7acbb7765c6e4288158a63787f
MD5 0cd05b13d93aa001b1c1840dbb0ad5ad
BLAKE2b-256 95e8aec39fb3aa81c916c06af5d41428bad9bc39d06d5b7b8d0397042a750dbc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.2

2 files

0.1.1

2 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