Skip to main content

Fast gitignore CLI tool with cached templates

Project description

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

Project details


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.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

gitignore_cli_tddschn-0.2.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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