git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

Per-file mode

Open dhess opened this issue 5 years ago • 1 comments

Re: #72, it would be nice if pre-commit-hooks supported a "map"-like operation for tools or modes of tools that can only work a file at a time. One possible implementation would be that you specify this mode as a flag and then pre-commit-hooks uses a find command with the supplied glob to do the work. That would permit a variant of #72 to work and also support purty for PureScript formatting, which apparently only works in file-at-a-time mode.

Thoughts?

dhess avatar Oct 22 '20 17:10 dhess

Note that we have a bunch of helpers these days that iterate a directory, see mdsh for an example.

domenkozar avatar Nov 05 '22 20:11 domenkozar