mirror of
https://codeberg.org/Tealk/git-ignore-helper.git
synced 2025-11-09 19:41:49 +01:00
No description
| .gitignore | ||
| app.py | ||
| LICENSE | ||
| README.md | ||
.gitignore Generator
A simple Python script that generates .gitignore files using the gitignore.io API. It supports selecting templates for various programming languages and development environments, offers wildcard search, and provides convenient tab completion in interactive mode.
Features
- Generate
.gitignorefiles based on templates from gitignore.io. - Wildcard search: Find templates containing specific terms.
- Tab completion: Quickly input template names in interactive mode.
- Interactive mode: User-friendly input with autocompletion and search functionality.
- Command-line support: Generate
.gitignorefiles directly without interaction.
Requirements
- Python 3.7 or higher
requestslibrary (can be installed withpip install requests)
Installation
- Clone the repository:
git clone https://codeberg.org/Tealk/git-ignore-helper.git cd git-ignore-helper
Usage
1. Command-Line Mode
Generate a .gitignore file with specific templates:
python app.py -t python node visualstudiocode
Search for templates (Wildcard Search):
python app.py -s py
Save the .gitignore file to a specific location:
python app.py -o /path/to/project/.gitignore -t python
2. Interactive Mode
Run the script without arguments:
python app.py
In interactive mode, you can:
- Enter templates: Type the desired templates, separated by spaces.
- Use wildcard search: Type
search <term>to search for templates. - Use tab completion: Press
TABto autocomplete template names. - Exit: Type
quit,exit, orqto leave the mode.
License
This project is licensed under the AGPL-3.0 License. For more details, see the LICENSE file.
Contributing
Contributions are welcome! If you find bugs or want to propose new features:
- Open an issue in the repository.
- Fork the project and create a pull request.