@ndamulelonemakh/ignore-cli
v1.0.2
Published
A convenient command line tool for adding .ignore files to your project
Maintainers
Readme
ignore-cli
A fast command line tool for adding .gitignore and .dockerignore files to your project.
Features
- 📥 Download ignore file templates for 24+ languages, frameworks, and tools
- 🔍 Search and discover available templates
- 🐳 Support for both Git and Docker ignore files
- ⚡ Fast downloads from GitHub's official gitignore repository
- 🎨 Beautiful CLI output with colors and spinners
Installation
# Install globally from npm
npm install -g @ndamulelonemakh/ignore-cli
# Or run directly with npx
npx @ndamulelonemakh/ignore-cli add PythonUsage
Add an ignore file
# Add a .gitignore file for Python
ignore add Python
# Or use the short alias
ign add Python
# Add a .dockerignore file for Node.js
ignore add Node --service docker
# Specify output directory
ignore add Go --out ./my-project
# Force overwrite existing file
ignore add Rust --forceList available templates
# List all available templates
ignore list
# Or use the alias
ignore lsSearch for templates
# Search by name or description
ignore search python
# Or use the alias
ignore find nodeAvailable Templates
Languages
C, C++, Go, Java, Kotlin, Python, Ruby, Rust, Swift, Dart, Haskell, Scala, Elixir, OCaml
Frameworks
Node, Android, Rails, Laravel, Flutter
Tools
VisualStudio, VisualStudioCode, JetBrains, Vim, Emacs
How it works
Templates are downloaded on-demand from GitHub's official gitignore repository.
# Example: Download Python gitignore
ignore add Python
# Downloads from: https://raw.githubusercontent.com/github/gitignore/main/Python.gitignoreDevelopment
# Clone the repository
git clone https://github.com/ndamulelonemakh/ignore-cli.git
cd ignore-cli
# Install dependencies (using pnpm)
pnpm install
# Build the project
pnpm run build
# Run tests
pnpm run test
# Run the CLI locally
pnpm start -- add PythonScripts
pnpm run build- Compile TypeScript to JavaScriptpnpm run dev- Watch mode for developmentpnpm run test- Run testspnpm run check- Run Biome (lint + format check)pnpm run check:fix- Fix lint and format issues with Biomepnpm run typecheck- Run TypeScript type checker
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
ISC © @NdamuleloNemakh
