Skip to content

Current pattern for multiple files formatting #313

Answered by kkinnear
arichiardi asked this question in Q&A
Discussion options

You must be logged in to vote

Would something that did essentially this solve your problem? I don't mean actually using the shell, but getting this effect inside of zprint?

zprint -lsfw **/*.clj **/*.cljc **/*.edn

where you get to pick the extensions? That is, start in the current directory, and work down recursively doing all of a specified set of extensions? Where you tell zprint the extensions you want.

That looks pretty easy to implement, though I'd have to switch file system libraries, which is far from easy. There are a lot of quirks in the ways that file systems work that I have fixed up over time using the current file system library that would come undone. But it might be worth doing.

Replies: 16 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by arichiardi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@arichiardi
Comment options

@kkinnear
Comment options

@arichiardi
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants