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

Syntax for formatting individual file is annoying #126

Closed
araujoms opened this issue Dec 17, 2024 · 1 comment
Closed

Syntax for formatting individual file is annoying #126

araujoms opened this issue Dec 17, 2024 · 1 comment

Comments

@araujoms
Copy link

If I just want to run Runic on the file test.jl, I need to do

using Runic
Runic.format_file("test.jl"; inplace = true)

For comparison, with JuliaFormatter I only need to do

using JuliaFormatter
format("test.jl")

Just export the function and let the default value for inplace be true.

@fredrikekre
Copy link
Owner

Since it is a (potentially) destructive operation I like the explicitness of requiring the inplace keyword argument. I also prefer not exporting names, but they can be marked with public in supported Julia versions (see #127).

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

No branches or pull requests

2 participants