No description
Find a file
2025-06-30 17:52:25 +02:00
.gitignore init 2025-04-12 21:11:15 +02:00
app.py Changed(core): format with Black Formatter 2025-06-30 17:52:25 +02:00
LICENSE init 2025-04-12 21:11:15 +02:00
README.md Changed(core): rename main file 2025-06-30 09:58:33 +02:00

.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 .gitignore files 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 .gitignore files directly without interaction.

Requirements

  • Python 3.7 or higher
  • requests library (can be installed with pip install requests)

Installation

  1. 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
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 TAB to autocomplete template names.
  • Exit: Type quit, exit, or q to 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:

  1. Open an issue in the repository.
  2. Fork the project and create a pull request.