A CLI tool for generating .gitignore files
Project description
Generate Gitignore
A simple Python script to generate a .gitignore file for your project using the templates from github.com/github/gitignore
Templates
Templates are taken from the github.com/github/gitignore repository and are updated every 24 hours.
The parsed list of templates can be found in the templates.json file. This file is used by the script to generate the list of available templates.
I am not a maintainer of the gitignore source repository, so if you wish to have a template added, please open an issue or a pull request on the source repository as I do not maintain any custom templates.
Usage
Installation
Install the package using pip:
pip install generate-gitignore
For global installation, it is recommended to use pipx as to avoid breaking any system packages, especially on linux systems:
pipx install generate-gitignore
Running
Once installed, you can run the script with the following command:
generate-gitignore
Listing all available templates
You can list all available templates with the list command:
generate-gitignore list
Searching for a template
You can search for a template with the search command, it will launch an interactive search in the terminal allowing you to search by name and apply the selected template:
generate-gitignore search
Generating a .gitignore file
If you want to use a template directly, you can use the use command followed by an array of template names:
generate-gitignore use python visualstudiocode ...
Contributing
Contributions are welcome, please open an issue or a pull request if you wish to contribute. Make sure to follow the Contribution Guidelines before submitting a pull request.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file generate_gitignore-1.0.2.tar.gz.
File metadata
- Download URL: generate_gitignore-1.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae789599b570074097a480ad32c92303bb01c851bd660b52a726d374d405eb7a
|
|
| MD5 |
f834fd9b37060d0b79928f354e1a9da3
|
|
| BLAKE2b-256 |
a6bcc30af501f86ff9e6f0a88e183461434b03dc8018d94b1d88a540a764e553
|
File details
Details for the file generate_gitignore-1.0.2-py3-none-any.whl.
File metadata
- Download URL: generate_gitignore-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90efa6672d920ef366b76ccdf4b9f165206f2f590f9ab8bde87829fb786b396b
|
|
| MD5 |
b7686713a61d1a1af0942e1161b8e41d
|
|
| BLAKE2b-256 |
b4e566f9e45928c59099ee35a481422f10cf16eca15d3a843cf56d75a452f864
|