gitignore-downloader

Crates.iogitignore-downloader
lib.rsgitignore-downloader
version1.0.0
created_at2025-12-11 23:29:00.406716+00
updated_at2025-12-11 23:29:00.406716+00
descriptionFetch and compose GitHub .gitignore templates from the terminal.
homepage
repositoryhttps://github.com/cesarferreira/gitignore
max_upload_size
id1980748
size61,247
César Ferreira (cesarferreira)

documentation

README

gitignore-downloader

Fetch and compose GitHub's .gitignore templates from your terminal. When no type is provided, a fuzzy picker helps you choose; when you pass a type, it downloads immediately.

List of available templates

Install

cargo install gitignore-downloader

This installs the gi binary.

Usage

# Fuzzy pick a template
gi

# Direct download without the picker
gi rust

# List available templates (cached)
gi --list

# Show the template without writing it
gi --dry-run node

# Overwrite a custom path
gi --output other.gitignore --overwrite Rust MacOS

Key flags:

  • --list / -l – print all template names.
  • --output <PATH> – where to write (default: .gitignore).
  • --overwrite – replace instead of append.
  • --dry-run – print to stdout.
  • --no-cache – ignore cached template list.
  • --cache-ttl <MINUTES> – cache lifetime (default 1440).

Built-in snippets: --macos and --locks append handy ignores without hitting the network.

The tool caches the template list under the XDG cache dir and will reuse it until it expires (defaults to 24h). When appending, it skips templates already present in the output.

Development

  • Build: cargo build
  • Test: cargo test

License

MIT

Commit count: 0

cargo fmt