Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting a directory into other directory #43

Open
Janiczek opened this issue Oct 26, 2015 · 2 comments
Open

Formatting a directory into other directory #43

Janiczek opened this issue Oct 26, 2015 · 2 comments

Comments

@Janiczek
Copy link
Contributor

Should this usage pattern be allowed?
$ elm-format DIR --output DIR2

The intention probably is copying the filenames one for one:

  • DIR/first.elm -> DIR2/first.elm
  • DIR/second.elm -> DIR2/second.elm
@avh4
Copy link
Owner

avh4 commented Oct 26, 2015

I think we should leave this out for v1. I'm expecting the most common case to be that people run elm-format on their whole project to update everything in-place. --output would be for a) people just testing out the tool for the first time or that need to do one-off formatting, and b) people who are writing scripts or other tools. I don't think formatting one directory into another would be that helpful in either case, since (a) should have version control, and (b) will probably be iterating files themselves.

@avh4
Copy link
Owner

avh4 commented May 25, 2016

If anyone has had a need for this in a real project, please comment below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants