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

d2 fmt: Accept multiple files to be formatted #718

Closed
nhooyr opened this issue Jan 24, 2023 · 3 comments · Fixed by #733
Closed

d2 fmt: Accept multiple files to be formatted #718

nhooyr opened this issue Jan 24, 2023 · 3 comments · Fixed by #733
Assignees

Comments

@nhooyr
Copy link
Contributor

nhooyr commented Jan 24, 2023

No description provided.

@nhooyr nhooyr self-assigned this Jan 24, 2023
@alixander
Copy link
Collaborator

probably can group with this (#13). if u can allow multiple files to be formatted, we should allow multiple files to be rendered too

@nhooyr
Copy link
Contributor Author

nhooyr commented Jan 25, 2023

Nah this is way simpler/quicker. Just a simple for loop and we're good.

@bo-ku-ra
Copy link
Contributor

FYI. i run the following on Windows now

[file exists]
c:\d2\test.d2
c:\d2\aaa\test2.d2

[cmd.exe]
c:\d2> for /r %i in (*.d2) do d2.exe fmt "%i"

nhooyr added a commit to nhooyr/d2 that referenced this issue Jan 27, 2023
nhooyr added a commit to nhooyr/d2 that referenced this issue Jan 27, 2023
nhooyr added a commit to nhooyr/d2 that referenced this issue Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants