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:
-
-tor--template: Specifies the name of the templates to use. Multiple templates can be specified by separating them with commas (e.g., `node,python). -
-for--filename: Specifies the name of the output file. Defaults to .gitignore` if not provided.
Generate a .gitignore file for Node.js:
gig -t nodeGenerate a .gitignore file for both Node.js and Python:
gig -t node,pythonGenerate a .gitignore file for Node.js and save it to custom.gitignore:
gig -t node -f custom.gitignoreThis 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: