Wrap pathspec (gitignore-like wildmatch) in a CLI
Project description
wildmatch
This CLI tool is intended to assist in filtering lists of paths by potentially arbitrary .gitignore
-like configuration
files. It uses the python-pathspec
library with argparse
to
allow easier use in pipelines and automation.
$ wildmatch --help
usage: wildmatch [-h] [-c CONF] [-i INPUT] [--version]
Filter lists of paths by arbitrary .gitignore-like configuration files.
optional arguments:
-h, --help show this help message and exit
-c CONF, --conf CONF optionally set the configuration file to filter by, defaults to .diffignore (default: .diffignore)
-i INPUT, --input INPUT
optionally specify an input file to filter by the configuration file (default: None)
--version Display wildmatch version (0.0.1). (default: False)
Install
Installation requires Python >=3.9
.
pip install wildmatch
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
wildmatch-0.3.3.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file wildmatch-0.3.3.tar.gz
.
File metadata
- Download URL: wildmatch-0.3.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759210f9327110df605c69ec485c097a55dfdd9d2b5ae70ef48c1cba3cc9e173 |
|
MD5 | 237c1da926f4f350cd8520c732e8df00 |
|
BLAKE2b-256 | e76033953125fb464114d7725f4df8559ccf53de50205852675c3e85904e08b9 |
File details
Details for the file wildmatch-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: wildmatch-0.3.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15cde34102543fa541d45c363bcaad76cbbf1c3e5cd76c7826c49cb70ebc4644 |
|
MD5 | 87f5d5ade1baba045bfe898cb4e2ddca |
|
BLAKE2b-256 | 7b7d24db9bcdd989e5ce98da210fd947cbda418c5787eb41dc829aa8d9ba7306 |