A simple command-line interface (CLI) tool to generate .gitignore
files.
This tool allows you to generate .gitignore
files by specifying templates. It fetches the templates from a predefined API and combines them into a single .gitignore
file.
To install this CLI tool, clone the repository and build the project using Cargo:
git clone https://github.com/yourusername/gitignore-generator.git
cd gitignore-generator
cargo build --release
cargo install --path .
The CLI accepts two parameters:
-
-t
or--template
: Specifies the name of the templates to use. Multiple templates can be specified by separating them with commas (e.g., `node,python). -
-f
or--filename
: Specifies the name of the output file. Defaults to .gitignore` if not provided.
Generate a .gitignore file for Node.js:
gig -t node
Generate a .gitignore file for both Node.js and Python:
gig -t node,python
Generate a .gitignore file for Node.js and save it to custom.gitignore:
gig -t node -f custom.gitignore
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project uses the following crates: