Skip to content

Change executable name to dartfmt #163

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

Closed
sethladd opened this issue Feb 12, 2015 · 8 comments
Closed

Change executable name to dartfmt #163

sethladd opened this issue Feb 12, 2015 · 8 comments

Comments

@sethladd
Copy link

Just a bit confusing... any chance we can unify the names?

@munificent
Copy link
Member

Yes, I'll change the executable name to dartfmt once the SDK is running the new formatter code. I'm less concerned about the names shadowing on the PATH if they'll be running at least approximately the same application.

@munificent munificent changed the title dart_style installs as dartformat? Change executable name to dartfmt Feb 12, 2015
@seaneagan
Copy link

I think @sethladd was wanting to unify the package (dart_style) with the executable name (dartformat), no? That would be my preference, any of dart_format, dartformat, dartfmt SGTM. There's a parallel discussion going on over in dart_lint.

@sethladd
Copy link
Author

I can't remember why we decided to use dart_style and dartformat (two different names).

We recently discussed this, and we decided not to have two different tool names, and just have one tool and one name: dartfmt.

So... should we rename this repo?

@pq
Copy link
Member

pq commented Feb 12, 2015

The decision we arrived at over in dart_lint land was in fact to change that package to the more general linter with the expectation that it was already scoped by dartlang and publang for repo and package respectively. If we follow that lead, why not call this simply formatter?

@pq
Copy link
Member

pq commented Feb 12, 2015

As for the dartfmt legacy, that's my bad... But can't we just make it go away? I doubt if many users would be affected since I'm guessing they mainly invoke it from a tool (such as DartEditor) and so wouldn't know the difference...

@sethladd
Copy link
Author

Sublime uses (used?) dartfmt. We don't know how many people have integrated the dartfmt script (because we don't track adoption of our tools). We have to assume that removing it from the SDK is a breaking change.

@munificent
Copy link
Member

I can't remember why we decided to use dart_style and dartformat (two different names).

I initially expected it to contain more than just the formatter: stuff like the linter, etc.

After talking about it with @pq, he decided to put the linter in a separate package, but by then the name dart_style was already in use. Since then, we have had a bit of discussion about sharing code between the linter and the formatter, so I'm still wondering if it makes sense to unify those packages.

@seaneagan
Copy link

@munificent I filed dart-lang/sdk#57276 for the suggestion from @pq above to rename this package/repo given it's tighter focus after the linter package was split out, since that was not addressed here.

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

4 participants