bram209 / leptosfmt

A formatter for the leptos view! macro
Apache License 2.0
271 stars 29 forks source link

feat: add exclude patterns support #133

Closed tetuaoro closed 3 months ago

tetuaoro commented 3 months ago

Description

This PR enhances the leptosfmt command to support excluding files or directories.

Usage

In my case, I need to exclude just one directory out of 5 directories, so instead of including specific directories, I simply use the exclude feature :

leptosfmt src/ -x src/first -x src/secundo/mod.rs

Changes

I hope this feature is useful to everyone.

bram209 commented 3 months ago

thanks!