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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7077bade5c4e7c3ec38ac47fe8bfaa9980de9c4b9cc1d2130cba44bee06f882c |
|
MD5 | 314df0bb79d34dec9caf3746fbd7b419 |
|
BLAKE2b-256 | 5c2e91129547335c5ed0909083abe974acc5060beb99b077381528af0545d1c3 |
Close
Hashes for gitignore_cli_tddschn-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74fa278e86c3c8d2c203e2fb97bad0c3d72872c0a71e4b3517724dccdba6914 |
|
MD5 | 89384bbdfb4d7b2a0419656d04aa5516 |
|
BLAKE2b-256 | 394cb5f5ad91a6cd0152c4c0df794cf81524c5df3e59ff73eb95d034757aec08 |