Fast gitignore CLI tool with cached templates
Project description
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
.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gitignore-cli-tddschn-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56e15510153201582b999ac9b14bdc262b2b1f2bc4c7a0936828408c7f0d7e9 |
|
MD5 | 8ac9ece0a80f0df91b25ed9e1f67cba3 |
|
BLAKE2b-256 | 8d6cdbd0ef79085c2988ffb907861981ca12fb52e7fb296e5af308f842176d87 |
Close
Hashes for gitignore_cli_tddschn-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d0673dcc321cb1edfd58b6c29b3860a0d54ca7acbb7765c6e4288158a63787f |
|
MD5 | 0cd05b13d93aa001b1c1840dbb0ad5ad |
|
BLAKE2b-256 | 95e8aec39fb3aa81c916c06af5d41428bad9bc39d06d5b7b8d0397042a750dbc |