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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f24f3c641391115ec845350a451dc61def43b18a736a80067011b4b9e000214 |
|
MD5 | a5f8a6a01eb0381618cf289a777cba93 |
|
BLAKE2b-256 | 87e2643f99f155fc17829ffbdd1f827e9c0b640c9739723df4b598971916624f |
Close
Hashes for gitignore_cli_tddschn-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8efc7d16be54a335a9e5c9da6331ce0684c2670ae5d237f29285673aab59410 |
|
MD5 | c30600ec90d77143471524ef0648ba1e |
|
BLAKE2b-256 | 5f5a4c890ba0b0f0e05528c4e368f9407293f2e065bfa450327232abd91dfed2 |