mix mime_description.generate (MimeDescription v0.12.0)

Copy Markdown View Source

Generates or updates the embedded MIME description data module.

This task fetches the latest MIME type descriptions from the freedesktop.org shared-mime-info database and generates an Elixir module with the data embedded.

The task uses ETags to check if the remote data has changed since the last generation, avoiding unnecessary downloads and regeneration.

Usage

mix mime_description.generate

Options

  • --force - Force regeneration even if the data hasn't changed

Examples

# Check for updates and regenerate if needed
mix mime_description.generate

# Force regeneration
mix mime_description.generate --force